Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MySqlConfig ¶
type MySqlConfig struct { // MySqlHost `yaml:",inline"` // inline has no effect for inherit, seems that yaml is ok Addr string `yaml:"addr"` Username string `yaml:"username"` Password string `yaml:"password"` Db string `yaml:"db"` MaxOpenConn int `yaml:"maxOpenConn"` MaxIdleConn int `yaml:"maxIdleConn"` ConnMaxLifeTime time.Duration `yaml:"connMaxLifeTime"` }
type Predicate ¶
type Predicate string
Predicate is a string that acts as a condition in the where clause
type TracePlugin ¶
type TracePlugin struct{}
func (*TracePlugin) Initialize ¶
func (op *TracePlugin) Initialize(db *gorm.DB) (err error)
func (*TracePlugin) Name ¶
func (op *TracePlugin) Name() string
Click to show internal directories.
Click to hide internal directories.