database

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Db            *gorm.DB
	IsInitialized bool
)

Functions

func AutoMigrate

func AutoMigrate(model interface{})

AutoMigrate Automatically migrates a gorm.Model interface. This simply calls AutoMigrate on the model argument. Additional logging.

func InitDatabase

func InitDatabase(dsn string) (*gorm.DB, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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