database

package
v0.0.0-...-5b6618e Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(c *DbConf, writer logger.Writer) (db *gorm.DB, err error)

func Migrate

func Migrate(db *gorm.DB, defaultAdmin model.User) error

Types

type DbConf

type DbConf struct {
	Host     string
	User     string
	Password string
	DbName   string
	Port     uint64
}

Jump to

Keyboard shortcuts

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