Documentation
¶
Index ¶
- Variables
- func CheckDBForErrorOrNoRows(db *gorm.DB) (*gorm.DB, bool)
- func CreateDatabase() (*gorm.DB, error)
- func CreateDatabaseWithDSN(connectionString string) (*gorm.DB, error)
- func MigrateDatabase(db *gorm.DB)
- func MigrateWithLog(name string, i interface{}, db *gorm.DB)
- func RunMigrations(db *gorm.DB) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func CheckDBForErrorOrNoRows ¶
TODO: make this function usefull still need to do 2 checks most of the time where this function is called
func CreateDatabase ¶
func MigrateDatabase ¶
func MigrateWithLog ¶
migrates using GORM framework instead of migration files, not used atm
func RunMigrations ¶
runs the migration files in the /migrations folder
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.