Versions in this module Expand all Collapse all v2 v2.0.1 Jan 27, 2021 Changes in this version + func Wrap(driver driver.Driver, hooks Hooks) driver.Driver + type Conn struct + Conn driver.Conn + func (conn *Conn) Begin() (driver.Tx, error) + func (conn *Conn) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) + func (conn *Conn) Close() error + func (conn *Conn) Prepare(query string) (driver.Stmt, error) + func (conn *Conn) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) + type Driver struct + func (drv *Driver) Open(name string) (driver.Conn, error) + type ErrorHook func(ctx context.Context, err error, query string, args ...interface{}) error + type ExecerContext struct + func (conn *ExecerContext) Exec(query string, args []driver.Value) (driver.Result, error) + func (conn *ExecerContext) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error) + type ExecerQueryerContext struct + type ExecerQueryerContextWithSessionResetter struct + type Hook func(ctx context.Context, query string, args ...interface{}) (context.Context, error) + type Hooks interface + After func(ctx context.Context, query string, args ...interface{}) (context.Context, error) + Before func(ctx context.Context, query string, args ...interface{}) (context.Context, error) + func Compose(hooks ...Hooks) Hooks + type MultipleErrors []error + func (m MultipleErrors) Error() string + type OnErrorer interface + OnError func(ctx context.Context, err error, query string, args ...interface{}) error + type QueryerContext struct + func (conn *QueryerContext) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error) + type SessionResetter struct + func (s *SessionResetter) ResetSession(ctx context.Context) error + type Stmt struct + Stmt driver.Stmt + func (stmt *Stmt) Close() error + func (stmt *Stmt) Exec(args []driver.Value) (driver.Result, error) + func (stmt *Stmt) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) + func (stmt *Stmt) NumInput() int + func (stmt *Stmt) Query(args []driver.Value) (driver.Rows, error) + func (stmt *Stmt) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) Other modules containing this package github.com/gchaincl/sqlhooks