pgsqldriver

package module
v0.0.0-...-f8287ee Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2012 License: BSD-3-Clause Imports: 12 Imported by: 7

README

pgsqldriver

pgsqldriver is a PostgreSQL driver for the [Go SQL database package] (http://weekly.golang.org/pkg/database/sql/).

Installation

go get github.com/jbarham/gopgsqldriver

By default the package is configured to build on Linux.

Usage

import "database/sql"
import _ "github.com/jbarham/gopgsqldriver"

Note that by design pgsqldriver is not intended to be used directly. You do need to import it for the side-effect of registering itself with the sql package (using the name "postgres") but thereafter all interaction is via the sql package API. See the included test file pgsqldriver_test.go for example usage.

About

pgsqldriver is based on my pgsql.go package.

John Barham jbarham@gmail.com @john_e_barham Melbourne, Australia

Documentation

Overview

Package pgsqldriver is a PostgreSQL driver for the Go SQL database package.

Index

Constants

View Source
const (
	BOOLOID             = 16
	BYTEAOID            = 17
	CHAROID             = 18
	NAMEOID             = 19
	INT8OID             = 20
	INT2OID             = 21
	INT2VECTOROID       = 22
	INT4OID             = 23
	REGPROCOID          = 24
	TEXTOID             = 25
	OIDOID              = 26
	TIDOID              = 27
	XIDOID              = 28
	CIDOID              = 29
	OIDVECTOROID        = 30
	XMLOID              = 142
	POINTOID            = 600
	LSEGOID             = 601
	PATHOID             = 602
	BOXOID              = 603
	POLYGONOID          = 604
	LINEOID             = 628
	FLOAT4OID           = 700
	FLOAT8OID           = 701
	ABSTIMEOID          = 702
	RELTIMEOID          = 703
	TINTERVALOID        = 704
	UNKNOWNOID          = 705
	CIRCLEOID           = 718
	CASHOID             = 790
	MACADDROID          = 829
	INETOID             = 869
	CIDROID             = 650
	INT4ARRAYOID        = 1007
	TEXTARRAYOID        = 1009
	FLOAT4ARRAYOID      = 1021
	ACLITEMOID          = 1033
	CSTRINGARRAYOID     = 1263
	BPCHAROID           = 1042
	VARCHAROID          = 1043
	DATEOID             = 1082
	TIMEOID             = 1083
	TIMESTAMPOID        = 1114
	TIMESTAMPTZOID      = 1184
	INTERVALOID         = 1186
	TIMETZOID           = 1266
	BITOID              = 1560
	VARBITOID           = 1562
	NUMERICOID          = 1700
	REFCURSOROID        = 1790
	REGPROCEDUREOID     = 2202
	REGOPEROID          = 2203
	REGOPERATOROID      = 2204
	REGCLASSOID         = 2205
	REGTYPEOID          = 2206
	REGTYPEARRAYOID     = 2211
	TSVECTOROID         = 3614
	GTSVECTOROID        = 3642
	TSQUERYOID          = 3615
	REGCONFIGOID        = 3734
	REGDICTIONARYOID    = 3769
	RECORDOID           = 2249
	RECORDARRAYOID      = 2287
	CSTRINGOID          = 2275
	ANYOID              = 2276
	ANYARRAYOID         = 2277
	VOIDOID             = 2278
	TRIGGEROID          = 2279
	LANGUAGE_HANDLEROID = 2280
	INTERNALOID         = 2281
	OPAQUEOID           = 2282
	ANYELEMENTOID       = 2283
	ANYNONARRAYOID      = 2776
	ANYENUMOID          = 3500
)

WARNING: This file is auto-generated! Do not edit.

Variables

This section is empty.

Functions

This section is empty.

Types

type Date

type Date struct {
	time.Time
}

func (*Date) Scan

func (d *Date) Scan(value interface{}) error

Jump to

Keyboard shortcuts

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