Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
Options are the options for TraceHook.
func DefaultTraceHookOptions ¶
func DefaultTraceHookOptions() Options
DefaultTraceHookOptions are the default options for TraceHook.
type TraceHook ¶
type TraceHook struct {
// contains filtered or unexported fields
}
TraceHook is a hook.Hook implementation for SQL tracing.
func NewTraceHook ¶
func NewTraceHook(options ...TraceHookOption) *TraceHook
NewTraceHook returns a new TraceHook, for a provided list of TraceHookOption.
type TraceHookOption ¶
type TraceHookOption func(o *Options)
TraceHookOption are the functional options for TraceHook.
func WithArguments ¶
func WithArguments(arguments bool) TraceHookOption
WithArguments is used to enable the SQL arguments tracing.
func WithExcludedOperations ¶
func WithExcludedOperations(excludedOperations ...sql.Operation) TraceHookOption
WithExcludedOperations is used to exclude a list of database operations from tracing.
Click to show internal directories.
Click to hide internal directories.