database

package
v0.0.0-...-447d7c9 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2017 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustDataset

func MustDataset(ds *goqu.Dataset, err error) *goqu.Dataset

MustDataset panics if a dataset returns an error.

func NewPostgres

func NewPostgres(cfg config.PostgresConfig) (*sqlx.DB, *goqu.Database, error)

NewPostgres connects to the database and returns a query generator

func NewSQLite

func NewSQLite(cfg config.SQLiteConfig) (*sqlx.DB, *goqu.Database, error)

NewSQLite sets up the database connection and returns a query generator

Types

This section is empty.

Jump to

Keyboard shortcuts

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