Documentation ¶ Index ¶ func DecorateEqualInt(tx *gorm.DB, field string, value int) *gorm.DB func DecorateLike(tx *gorm.DB, field, value string) *gorm.DB func Get() *gorm.DB func InitRDBMS(name, source string, active, idle, idleTimeout int) (*gorm.DB, error) type Config Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func DecorateEqualInt ¶ func DecorateEqualInt(tx *gorm.DB, field string, value int) *gorm.DB func DecorateLike ¶ func DecorateLike(tx *gorm.DB, field, value string) *gorm.DB func Get ¶ func Get() *gorm.DB func InitRDBMS ¶ func InitRDBMS(name, source string, active, idle, idleTimeout int) (*gorm.DB, error) Init database init Types ¶ type Config ¶ type Config struct { DSN string // data source name Active int // pool Idle int // pool IdleTimeout time.Duration // connect max life time Debug bool } Source Files ¶ View all Source files config.go decorator.go rdbms.go Click to show internal directories. Click to hide internal directories.