Documentation ¶
Index ¶
- func Account() *gorm.DB
- func Core() *gorm.DB
- func DB(name string) *gorm.DB
- func DoInitModels(imfs ...InitModelFunc) error
- func InitModel(db *gorm.DB, models ...interface{}) error
- func InitMutilMySQL(dburls map[string]string) error
- func InitMySQL(name, dburl string) (*gorm.DB, error)
- func InitSQLite(name, dburl string) (*gorm.DB, error)
- func InsertOrUpdate(db *gorm.DB, v interface{}, columns ...string) error
- func Ops() *gorm.DB
- func Std() *gorm.DB
- type InitModelFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoInitModels ¶
func DoInitModels(imfs ...InitModelFunc) error
func InitMutilMySQL ¶
Types ¶
type InitModelFunc ¶
type InitModelFunc func() error
Click to show internal directories.
Click to hide internal directories.