db

package
v0.0.0-...-e021098 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DBUser for the db.
	DBUser = "DB_USER"
	// DBPass for the db.
	DBPass = "DB_PASS"
	// DBDomain where the db is hosted.
	DBDomain = "DB_DOMAIN"
	// DBPort on which the db serves.
	DBPort = "DB_PORT"
	// DBName of the db.
	DBName = "DB_NAME"
	// DBType of the DBMS. Example postgres, mysql, etc.
	DBType = "postgres"
)
View Source
const (
	// ChangelogPath holds the path to the migration scripts.
	ChangelogPath = "file://pkg/db/migration"
)

Variables

This section is empty.

Functions

func GetDBConn

func GetDBConn() (*sql.DB, error)

GetDBConn returns a connection to the sensormockery db.

func Migrate

func Migrate() error

Migrate applies database migration scripts.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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