Documentation ¶
Index ¶
- type Executor
- type 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
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PrepareExecutor ¶
type PrepareExecutor struct {
// contains filtered or unexported fields
}
func NewPrepareExecutor ¶
func NewPrepareExecutor(transaction transaction.Transaction) *PrepareExecutor
func (*PrepareExecutor) Begin ¶
func (exec *PrepareExecutor) Begin() error
func (*PrepareExecutor) Close ¶
func (exec *PrepareExecutor) Close(rollback bool)
func (*PrepareExecutor) Commit ¶
func (exec *PrepareExecutor) Commit(require bool) error
func (*PrepareExecutor) Query ¶
func (exec *PrepareExecutor) Query(ctx context.Context, result reflection.Object, sql string, params ...interface{}) error
func (*PrepareExecutor) Rollback ¶
func (exec *PrepareExecutor) Rollback(require bool) error
type SimpleExecutor ¶
type SimpleExecutor struct {
// contains filtered or unexported fields
}
func NewSimpleExecutor ¶
func NewSimpleExecutor(transaction transaction.Transaction) *SimpleExecutor
func (*SimpleExecutor) Begin ¶
func (exec *SimpleExecutor) Begin() error
func (*SimpleExecutor) Close ¶
func (exec *SimpleExecutor) Close(rollback bool)
func (*SimpleExecutor) Commit ¶
func (exec *SimpleExecutor) Commit(require bool) error
func (*SimpleExecutor) Query ¶
func (exec *SimpleExecutor) Query(ctx context.Context, result reflection.Object, sql string, params ...interface{}) error
func (*SimpleExecutor) Rollback ¶
func (exec *SimpleExecutor) Rollback(require bool) error
Click to show internal directories.
Click to hide internal directories.