Documentation
¶
Index ¶
- func IsPreparedStatement(ctx context.Context) bool
- func TxControl(ctx context.Context, defaultTxControl *table.TransactionControl) (txControl *table.TransactionControl)
- func WithPreparedStatement(ctx context.Context) context.Context
- func WithTxControl(ctx context.Context, txc *table.TransactionControl) context.Context
- func WithTxControlHook(ctx context.Context, hook txControlHook) context.Context
- type Conn
- type Tx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPreparedStatement ¶
func TxControl ¶
func TxControl(ctx context.Context, defaultTxControl *table.TransactionControl) (txControl *table.TransactionControl)
func WithTxControl ¶
Types ¶
type Conn ¶
type Conn interface { driver.Validator driver.Pinger ID() string NodeID() uint32 Exec(ctx context.Context, sql string, params *params.Params) (result driver.Result, err error) Query(ctx context.Context, sql string, params *params.Params) (result driver.RowsNextResultSet, err error) Explain(ctx context.Context, sql string, params *params.Params) (ast string, plan string, err error) BeginTx(ctx context.Context, opts driver.TxOptions) (Tx, error) Close() error }
Click to show internal directories.
Click to hide internal directories.