database

package
v1.2.3-testnet Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2019 License: ISC Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() error

Close closes the connection to the database

func Connect

func Connect(cfg *config.Config) error

Connect connects to the database mentioned in config variable.

func DB

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

DB returns a reference to the database connection

func Migrate

func Migrate(cfg *config.Config) error

Migrate database to the latest version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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