Skip to content

Commit

Permalink
public getSessionID interface (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
jievince authored Dec 29, 2021
1 parent b5b11a3 commit 91a3d1e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions session.go
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ func (session *Session) Release() {
session.connection = nil
}

func (session *Session) GetSessionID() int64 {
return session.sessionID
}

func IsError(resp *graph.ExecutionResponse) bool {
return resp.GetErrorCode() != nebula.ErrorCode_SUCCEEDED
}

0 comments on commit 91a3d1e

Please sign in to comment.