Documentation
¶
Index ¶
- func DB() (ret *gorm.DB, err error)
- func DBClose(n string) error
- func DBCloseAll()
- func DBMaster() (ret *gorm.DB, err error)
- func DBN(n string) (ret *gorm.DB, err error)
- func DSNS() ([]string, error)
- func DropRecreate(n string) error
- func MigrationAdd(id string, desc string, match func(s string) bool, mig func(d *gorm.DB) error)
- func MigrationRun() error
- func MigrationRunOnDb(dsn string) error
- type DBMigration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBCloseAll ¶
func DBCloseAll()
func DropRecreate ¶
func MigrationAdd ¶
func MigrationRun ¶
func MigrationRun() error
func MigrationRunOnDb ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.