database

package
v0.0.0-...-43633ff Latest Latest
Warning

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

Go to latest
Published: May 16, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DuplicateKeyViolationError is error code generated when
	// deuplicate key violation constraint is raised by postgres
	DuplicateKeyViolationError = "23505"
)

Variables

This section is empty.

Functions

func NewConnection

func NewConnection(connection ...string) *pg.DB

NewConnection opens and retruns the specified DB connection

func NewMigration

func NewMigration(conn string) (*migrate.Migrate, error)

NewMigration returns a new migration instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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