package
Version:
v0.0.0-...-cab0b4b
Opens a new window with list of versions in this module.
Published: Jun 16, 2017
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
DB is the instance that the other code can use to access the database.
func SetupConnection(dialect Dialect, args ...interface{}) (err error)
SetupConnection initializes the DB variable in this package.
func SetupSchema() (err error)
SetupSchema Creates the database tables.
func Shutdown() (err error)
Shutdown closes the database connection.
Dialect is the database used. E.g sqlite3,mysql,...
Currently only sqlite3 is supported.
const (
SQLITE Dialect = "sqlite3"
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.