db

package
v0.0.0-...-bb1013f Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunMigrations

func RunMigrations(db *GormDatabase) error

Types

type Config

type Config struct {
	MysqlHost     string `json:"mysqlHost" koanf:"mysql_host"`
	MysqlDatabase string `json:"mysqlDatabase" koanf:"mysql_database"`
	MysqlUser     string `json:"mysqlUser" koanf:"mysql_user"`
	MysqlPassword string `json:"mysqlPassword" koanf:"mysql_password"`
	MysqlPort     string `json:"mysqlPort" koanf:"mysql_port"`
}

type GormDatabase

type GormDatabase struct {
	DB *gorm.DB
}

func New

func New(cfg Config) (database *GormDatabase)

Jump to

Keyboard shortcuts

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