Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTransactionNotFound = errors.New("no transaction found").WithCode(errors.CodInvalidParameterValue)
Functions ¶
Types ¶
type Transaction ¶
type Transaction interface {
GetID() string
IsClosed() bool
Rollback() error
Commit(ctx context.Context) ([]*sql.SQLTx, error)
GetSessionID() string
SQLExec(ctx context.Context, request *schema.SQLExecRequest) error
SQLQuery(ctx context.Context, request *schema.SQLQueryRequest) (*schema.SQLQueryResult, error)
}
Click to show internal directories.
Click to hide internal directories.