database

package
v0.0.0-...-c701154 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotFoundDB = fmt.Errorf("not found DB")
)

Functions

func Close

func Close() error

func Connect

func Connect(cfgs []*Cfg) error

func DB

func DB(n string) *gorm.DB

func Default

func Default() string

Types

type Cfg

type Cfg struct {
	Name   string `toml:"name"`
	Dsn    string `toml:"dsn"`
	Type   string `toml:"type"`
	Prefix string `toml:"prefix"`
}

Jump to

Keyboard shortcuts

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