db

package
v0.0.0-...-e026bce Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

type Database struct {
	Conn *sql.DB
}

Database handles DB connections

func Connect

func Connect(db config.Database) (*Database, error)

Connect create new Database struct and connects to DB

func (*Database) Migrate

func (db *Database) Migrate() (err error)

Migrate migrates database to valid state

Jump to

Keyboard shortcuts

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