Versions in this module Expand all Collapse all v1 v1.1.0 Nov 6, 2026 v1.0.0 Nov 6, 2026 Changes in this version + func ReportQuery(ctx context.Context, h Hooks, l *slog.Logger, e QueryEvent) + func ReportTransaction(ctx context.Context, h Hooks, operation string, start time.Time, err error) + func Scan(rows Rows, destination any, many bool) error + type Hooks struct + AfterQuery func(context.Context, QueryEvent) + AfterTransaction func(context.Context, TransactionEvent) + BeforeBegin func(context.Context) error + type JSON struct + Data T + Valid bool + func (j *JSON[T]) Scan(src any) error + func (j JSON[T]) Value() (driver.Value, error) + type QueryEvent struct + Duration time.Duration + Err error + Operation string + Statement string + type Row interface + Scan func(...any) error + type Rows interface + Close func() error + Columns func() ([]string, error) + Err func() error + Next func() bool + Scan func(...any) error + type TransactionEvent struct + Duration time.Duration + Err error + Operation string