datasource

package
v0.0.0-...-2aa1216 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

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

Connect connects to the database and returns the gorm database object

func DisconnectOrPanic

func DisconnectOrPanic(gormDB *gorm.DB)

DisconnectOrPanic disconnects from the database or panics if an error occurs

func Migrate

func Migrate(gormDB *gorm.DB, doLog bool) error

Migrate runs the database migrations

Types

This section is empty.

Jump to

Keyboard shortcuts

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