Versions in this module Expand all Collapse all v0 v0.1.0 Aug 21, 2025 Changes in this version + type Option func(hook *QueryHook) + func FromEnv(keys ...string) Option + func WithEnabled(on bool) Option + func WithErrorLevel(level slog.Level) Option + func WithLogSlow(duration time.Duration) Option + func WithLogger(logger *slog.Logger) Option + func WithQueryLevel(level slog.Level) Option + func WithSlowLevel(level slog.Level) Option + type QueryHook struct + func NewQueryHook(options ...Option) *QueryHook + func (h *QueryHook) AfterQuery(ctx context.Context, event *bun.QueryEvent) + func (h *QueryHook) BeforeQuery(ctx context.Context, event *bun.QueryEvent) context.Context