Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LogQueryHook ¶
type LogQueryHook struct {
// contains filtered or unexported fields
}
LogQueryHook implements bun query hook that logs queries.
func (*LogQueryHook) AfterQuery ¶
func (l *LogQueryHook) AfterQuery(_ context.Context, event *bun.QueryEvent)
func (*LogQueryHook) BeforeQuery ¶
func (l *LogQueryHook) BeforeQuery(ctx context.Context, _ *bun.QueryEvent) context.Context
Click to show internal directories.
Click to hide internal directories.