Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDBRecordNotFound = gorm.ErrRecordNotFound
ErrDBRecordNotFound 未查询到数据库记录
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { Driver string `yaml:"driver" mapstructure:"driver"` Dsn string `yaml:"dsn" mapstructure:"dsn"` KeepAlive int `yaml:"keep_alive" mapstructure:"keep_alive"` MaxIdles int `yaml:"max_idles" mapstructure:"max_idles"` MaxOpens int `yaml:"max_opens" mapstructure:"max_opens"` }
Options 创建数据库的选项
Click to show internal directories.
Click to hide internal directories.