db

package
v0.1.54 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup added in v0.1.44

func Setup(c *DatabaseConfig)

Setup setup the db

func Shared

func Shared() *gorm.DB

Shared is a singleton call

Types

type DatabaseConfig added in v0.1.44

type DatabaseConfig struct {
	SQLDbName string
	Username  string
	Passwd    string
	Host      string
	Port      string
	ToLog     string
}

DatabaseConfig is database configuration

Jump to

Keyboard shortcuts

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