database

package
v0.0.0-...-689a9a2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *sql.DB

DB is the global connection to the configured database.

Functions

func DSN

func DSN() (string, error)

DSN returns the data soure name from the environment. If there is a configuration problem an error is returned.

func Must

func Must(query string) *sql.Stmt

Must prepares SQL statements on the global database connection. If the preparation fails it panics.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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