Versions in this module Expand all Collapse all v0 v0.1.2 May 15, 2025 Changes in this version + type LogEntryVars struct + Duration time.Duration + Error error + Operation string + Query string + Timestamp time.Time + type Option func(hook *QueryHook) + func FromEnv(keys ...string) Option + func WithEnabled(on bool) Option + func WithQueryHookOptions(opts QueryHookOptions) Option + func WithVerbose(on bool) 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 + type QueryHookOptions struct + ErrorLevel logrus.Level + ErrorTemplate string + LogSlow time.Duration + Logger logrus.FieldLogger + MessageTemplate string + QueryLevel logrus.Level + SlowLevel logrus.Level