orm

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TracerDatabaseIsEnable

func TracerDatabaseIsEnable() bool

Types

type TracerGormHook

type TracerGormHook struct {
}

func (*TracerGormHook) After

func (*TracerGormHook) After(ctx context.Context, driverName string, parameters map[string]any) (context.Context, error)

func (*TracerGormHook) Before

func (*TracerGormHook) Before(ctx context.Context, driverName string, parameters map[string]any) (context.Context, error)

func (*TracerGormHook) Err

func (*TracerGormHook) Err(ctx context.Context, driverName string, err error, parameters map[string]any) error

type TracerXormHook

type TracerXormHook struct {
}

func (*TracerXormHook) AfterProcess

func (*TracerXormHook) AfterProcess(c *contexts.ContextHook, driverName string) error

func (*TracerXormHook) BeforeProcess

func (*TracerXormHook) BeforeProcess(c *contexts.ContextHook, driverName string) (context.Context, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL