pq

package
v1.1.0-beta.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2017 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeString                = "text"
	TypeCaseInsensitiveString = "citext"
	TypeNumber                = "double precision"
	TypeBoolean               = "boolean"
	TypeJSON                  = "jsonb"
	TypeTimestamp             = "timestamp without time zone"
	TypeLocation              = "geometry(Point)"
	TypeInteger               = "integer"
	TypeSerial                = "serial UNIQUE"
	TypeBigInteger            = "bigint"
	TypeGeometry              = "geometry"
)

Different data types that can be saved in and loaded from postgreSQL NOTE(limouren): varchar is missing because text can replace them, see the docs here: http://www.postgresql.org/docs/9.5/static/datatype-character.html

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context, appName string, accessModel skydb.AccessModel, connString string, migrate bool) (skydb.Conn, error)

Open returns a new connection to postgresql implementation

Types

type ExtContext added in v0.24.0

type ExtContext interface {
	sqlx.ExtContext
	GetContext(ctx context.Context, dest interface{}, query string, args ...interface{}) error
	QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
}

ExtContext is an interface for both sqlx.DB and sqlx.Tx

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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