Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMultipleStatementsNotSupported = errors.New("multiple statements not supported") ErrFieldCountNotMatch = errors.New("field count not match") )
Functions ¶
This section is empty.
Types ¶
type ResultSet ¶
type ResultSet interface { Columns() []string // Valid reports whether the current result set valid. Valid() bool // Next advances the current result set to the next row of query result. Next(ctx context.Context) error // Row returns the current row of query result. Row() datum.Row // Close closes the current result set, which will release all query intermediate resources.. Close() error }
ResultSet represents the result of a query.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session represents the session to interact with zGraph database instance. Typically, the number of session will be same as the concurrent thread count of the application. All execution intermediate variables should be placed in the Context.
func (*Session) Execute ¶
Execute executes a query and reports whether the query executed successfully or not. A result set will be non-empty if execute successfully.
func (*Session) OnClosed ¶
OnClosed sets the closed callback which will invoke after session closed.
func (*Session) StmtContext ¶
StmtContext returns the statement context object.
Click to show internal directories.
Click to hide internal directories.