db

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DSN string = fmt.Sprintf(":memory:?cache=%s&mode%s",
	"shared",
	"memory",
)

Functions

func Close

func Close(db *gorm.DB) error

Close database connection

func Create

func Create(timezone string) (*gorm.DB, error)

Create database connection

func Init

func Init(timezone string) *gorm.DB

Intialize database in memory

func Migrate

func Migrate(conn *gorm.DB) error

Migrating data from source

Types

This section is empty.

Jump to

Keyboard shortcuts

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