Documentation ¶
Index ¶
- type Interceptor
- func (i *Interceptor) ConnBeginTx(ctx context.Context, conn driver.ConnBeginTx, txOpts driver.TxOptions) (context.Context, driver.Tx, error)
- func (i *Interceptor) ConnExecContext(ctx context.Context, conn driver.ExecerContext, query string, ...) (driver.Result, error)
- func (i *Interceptor) ConnPing(ctx context.Context, conn driver.Pinger) error
- func (i *Interceptor) ConnPrepareContext(ctx context.Context, conn driver.ConnPrepareContext, query string) (context.Context, driver.Stmt, error)
- func (i *Interceptor) ConnQueryContext(ctx context.Context, conn driver.QueryerContext, query string, ...) (context.Context, driver.Rows, error)
- func (i *Interceptor) ConnectorConnect(ctx context.Context, connect driver.Connector) (driver.Conn, error)
- func (i *Interceptor) ResultLastInsertId(res driver.Result) (int64, error)
- func (i *Interceptor) ResultRowsAffected(res driver.Result) (int64, error)
- func (i *Interceptor) RowsClose(ctx context.Context, rows driver.Rows) error
- func (i *Interceptor) RowsNext(ctx context.Context, rows driver.Rows, dest []driver.Value) error
- func (i *Interceptor) StmtClose(ctx context.Context, stmt driver.Stmt) error
- func (i *Interceptor) StmtExecContext(ctx context.Context, stmt driver.StmtExecContext, query string, ...) (driver.Result, error)
- func (i *Interceptor) StmtQueryContext(ctx context.Context, stmt driver.StmtQueryContext, query string, ...) (context.Context, driver.Rows, error)
- func (i *Interceptor) TxCommit(ctx context.Context, tx driver.Tx) error
- func (i *Interceptor) TxRollback(ctx context.Context, tx driver.Tx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interceptor ¶
type Interceptor struct {
// contains filtered or unexported fields
}
Interceptor for zap.
func NewInterceptor ¶
func NewInterceptor(name string, logger *zap.Logger, interceptor sqlmw.Interceptor) *Interceptor
NewInterceptor for zap.
func (*Interceptor) ConnBeginTx ¶
func (*Interceptor) ConnExecContext ¶
func (i *Interceptor) ConnExecContext(ctx context.Context, conn driver.ExecerContext, query string, args []driver.NamedValue) (driver.Result, error)
func (*Interceptor) ConnPrepareContext ¶
func (*Interceptor) ConnQueryContext ¶
func (i *Interceptor) ConnQueryContext(ctx context.Context, conn driver.QueryerContext, query string, args []driver.NamedValue) (context.Context, driver.Rows, error)
func (*Interceptor) ConnectorConnect ¶
func (*Interceptor) ResultLastInsertId ¶
func (i *Interceptor) ResultLastInsertId(res driver.Result) (int64, error)
func (*Interceptor) ResultRowsAffected ¶
func (i *Interceptor) ResultRowsAffected(res driver.Result) (int64, error)
func (*Interceptor) StmtExecContext ¶
func (i *Interceptor) StmtExecContext(ctx context.Context, stmt driver.StmtExecContext, query string, args []driver.NamedValue) (driver.Result, error)
func (*Interceptor) StmtQueryContext ¶
func (i *Interceptor) StmtQueryContext(ctx context.Context, stmt driver.StmtQueryContext, query string, args []driver.NamedValue) (context.Context, driver.Rows, error)
func (*Interceptor) TxRollback ¶
Click to show internal directories.
Click to hide internal directories.