database

package
v0.0.0-...-c4b491b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2021 License: GPL-3.0, GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB

Functions

func CheckDBForErrorOrNoRows

func CheckDBForErrorOrNoRows(db *gorm.DB) (*gorm.DB, bool)

func CreateDatabase

func CreateDatabase() (*gorm.DB, error)

func CreateDatabaseWithDSN

func CreateDatabaseWithDSN(connectionString string) (*gorm.DB, error)

func MigrateDatabase

func MigrateDatabase(db *gorm.DB)

func MigrateWithLog

func MigrateWithLog(name string, i interface{}, db *gorm.DB)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL