Versions in this module Expand all Collapse all v1 v1.5.3 Feb 12, 2025 v1.5.2 Feb 12, 2025 Changes in this version + type Option func(*QueryHook) + func FromEnv(keys ...string) Option + func WithEnabled(on bool) Option + func WithVerbose(on bool) Option + func WithWriter(w io.Writer) Option + type QueryHook struct + func NewQueryHook(opts ...Option) *QueryHook + func (h *QueryHook) AfterQuery(ctx context.Context, event *ch.QueryEvent) + func (h *QueryHook) BeforeQuery(ctx context.Context, evt *ch.QueryEvent) context.Context