database

package
v0.0.0-...-c9ee09a Latest Latest
Warning

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

Go to latest
Published: May 25, 2016 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ERROR_CODE_INVALID_TEXT_REPRESENTATION       = "22P02"
	ERROR_CODE_UNIQUE_VIOLATION                  = "23505"
	ERROR_CODE_FOREIGN_KEY_CONSTRAINTS_VIOLATION = "23503"
	ERROR_CODE_NUMERIC_FIELD_OVERFLOW            = "22003"
)

http://www.postgresql.org/docs/9.3/static/errcodes-appendix.html

Variables

This section is empty.

Functions

func Close

func Close()

func DefaultForeignKeyConstraintName

func DefaultForeignKeyConstraintName(tableName string, columnNames ...string) string

func DefaultUniqueConstraintName

func DefaultUniqueConstraintName(tableName string, columnNames ...string) string

Returns the default unique constraint name generated by psql when there is no name given http://stackoverflow.com/questions/4107915/postgresql-default-constraint-names

func Get

func Get() *sql.DB

func Open

func Open()

Types

This section is empty.

Jump to

Keyboard shortcuts

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