db

package
v0.0.0-...-4d7690c Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDB

func GetDB() (*sqlx.DB, error)

returns a new connection to the database returns sql.DB instance on success or returns error

func InitDB

func InitDB(driver, dbname string) error

checks if local database exists, saves the references for use if it does param: driver: string: sql driver name param: dbname: string: database name returns error or nil

Types

This section is empty.

Jump to

Keyboard shortcuts

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