Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Executor ¶
type Executor struct { sqlt.Executor Before func(string, ...any) (string, []any, error) After func(sql.Result, error, time.Duration, string, ...any) (sql.Result, error) }
Executor is a hook container over sqlt.Executor capable to run before and after functions to modify or log data.
type Getter ¶
type Getter struct { sqlt.Getter Before func(any, string, ...any) (any, string, []any, error) After func(error, time.Duration, any, string, ...any) error }
Getter is a hook container over sqlt.Getter capable to run before and after functions to modify or log data.
type Querier ¶
type Querier struct { sqlt.Querier Before func(string, ...any) (string, []any, error) After func(*sql.Rows, error, time.Duration, string, ...any) (*sql.Rows, error) }
Querier is a hook container over sqlt.Querier capable to run before and after functions to modify or log data.
type Reader ¶
Reader is a hook container over sqlt.Reader capable to run before and after functions to modify or log data.
type ReaderExecutor ¶
ReaderExecutor is a hook container over sqlt.ReaderExecutor capable to run before and after functions to modify or log data.
func (ReaderExecutor) Exec ¶
Exec is sqlt.Executor and sqlt.ReaderExecutor interfaces implementation