Documentation
¶
Index ¶
- type Generator
- type GeneratorOptions
- type Hooks
- func (h *Hooks) After(ctx context.Context, query string, args ...interface{}) (context.Context, error)
- func (h *Hooks) Before(ctx context.Context, query string, args ...interface{}) (context.Context, error)
- func (h *Hooks) OnError(ctx context.Context, err error, query string, args ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
func NewGenerator ¶
type GeneratorOptions ¶
func NewOptions ¶
func NewOptions() *GeneratorOptions
type Hooks ¶
type Hooks struct{}
func (*Hooks) After ¶
func (h *Hooks) After(ctx context.Context, query string, args ...interface{}) (context.Context, error)
After hook will get the timestamp registered on the Before hook and print the elapsed time
Click to show internal directories.
Click to hide internal directories.