Versions in this module Expand all Collapse all v0 v0.1.1 Jul 23, 2021 Changes in this version + type LogEntryVars struct + Duration time.Duration + Error error + Operation string + Query string + Timestamp time.Time + type QueryHook struct + func NewQueryHook(opts QueryHookOptions) *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