sqlite

package
v0.0.0-...-3295dff Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sqlx.DB

global database (pooling provided by SQL driver)

Functions

func Init

func Init(confFunc func(conf *Config))

func Migrate

func Migrate(migrations string) error

Types

type Config

type Config struct {
	ConnectString string
	MaxIdleCons   int
	MaxOpenCons   int
}

ConnectString should look something like "dbname=dat_test user=dat password=!test host=localhost sslmode=disable"

Jump to

Keyboard shortcuts

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