db

package
v0.0.0-...-c2cee1d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotOpen = errors.New("database connection is not open")

Functions

func CheckMigration

func CheckMigration() error

CheckMigration reads the database schema version and checks against the current version in this binary. If they do not match, will attempt to migrate the schema.

func Close

func Close()

Close terminates and clears the database connection

func CreateSchema

func CreateSchema() error

CreateSchema sets up a new database schema for use

func Get

func Get() *sql.DB

Get returns the current database connection

func Initialize

func Initialize() error

Initialize opens the necessary database connections for SQLite3

Types

This section is empty.

Jump to

Keyboard shortcuts

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