database

package
v0.0.0-...-31a7bde Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UniqueViolationErr string = "23505"
)

Variables

This section is empty.

Functions

func Connect

func Connect(options Options) *sqlx.DB

func ExecStruct

func ExecStruct(db *sqlx.DB, statement string, data interface{}) (sql.Result, error)

Types

type Options

type Options struct {
	Driver, Params string
}

Jump to

Keyboard shortcuts

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