Versions in this module Expand all Collapse all v1 v1.4.0 Jul 14, 2023 Changes in this version + func NewMemoryContextCache() memoryContextCache + type ContextCache interface + Get func(key string) interface{} + Put func(key string, val interface{}) + type ContextHook struct + Args []interface{} + Ctx context.Context + Err error + ExecuteTime time.Duration + Result sql.Result + SQL string + func NewContextHook(ctx context.Context, sql string, args []interface{}) *ContextHook + func (c *ContextHook) End(ctx context.Context, result sql.Result, err error) + type Hook interface + AfterProcess func(c *ContextHook) error + BeforeProcess func(c *ContextHook) (context.Context, error) + type Hooks struct + func (h *Hooks) AddHook(hooks ...Hook) + func (h *Hooks) AfterProcess(c *ContextHook) error + func (h *Hooks) BeforeProcess(c *ContextHook) (context.Context, error)