Versions in this module Expand all Collapse all v0 v0.0.1 Jul 6, 2019 Changes in this version + type Executor interface + Begin func() error + Close func(rollback bool) + Commit func(require bool) error + Exec func(ctx context.Context, sql string, params ...interface{}) (common.Result, error) + Query func(ctx context.Context, result reflection.Object, sql string, ...) error + Rollback func(require bool) error + type PrepareExecutor struct + func NewPrepareExecutor(transaction transaction.Transaction) *PrepareExecutor + func (exec *PrepareExecutor) Begin() error + func (exec *PrepareExecutor) Close(rollback bool) + func (exec *PrepareExecutor) Commit(require bool) error + func (exec *PrepareExecutor) Exec(ctx context.Context, sql string, params ...interface{}) (common.Result, error) + func (exec *PrepareExecutor) Query(ctx context.Context, result reflection.Object, sql string, ...) error + func (exec *PrepareExecutor) Rollback(require bool) error + type SimpleExecutor struct + func NewSimpleExecutor(transaction transaction.Transaction) *SimpleExecutor + func (exec *SimpleExecutor) Begin() error + func (exec *SimpleExecutor) Close(rollback bool) + func (exec *SimpleExecutor) Commit(require bool) error + func (exec *SimpleExecutor) Exec(ctx context.Context, sql string, params ...interface{}) (common.Result, error) + func (exec *SimpleExecutor) Query(ctx context.Context, result reflection.Object, sql string, ...) error + func (exec *SimpleExecutor) Rollback(require bool) error