oid

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package oid contains OID constants as defined by the Postgres server.

Index

Constants

This section is empty.

Variables

View Source
var TypeName = map[Oid]string{
	ColTypeBoolean:       "BOOL",
	ColTypeInt64:         "INT4",
	ColTypeFloat64:       "NUMERIC",
	ColTypeChar:          "CHAR",
	ColTypeVarChar:       "VARCHAR",
	ColTypeTimestamp:     "TIMESTAMP",
	ColTypeTimestampTZ:   "TIMESTAMPTZ",
	ColTypeVarBinary:     "VARBINARY",
	ColTypeUUID:          "UUID",
	ColTypeLongVarChar:   "LONGVARCHAR",
	ColTypeLongVarBinary: "LONGVARBINARY",
	ColTypeBinary:        "BINARY",
}

Functions

This section is empty.

Types

type Oid

type Oid uint32

Oid is a Postgres Object ID.

const (
	ColTypeBoolean       Oid = 5
	ColTypeInt64         Oid = 6
	ColTypeFloat64       Oid = 7
	ColTypeChar          Oid = 8
	ColTypeVarChar       Oid = 9
	ColTypeTimestamp     Oid = 12
	ColTypeTimestampTZ   Oid = 13
	ColTypeVarBinary     Oid = 17
	ColTypeUUID          Oid = 20
	ColTypeLongVarChar   Oid = 115
	ColTypeLongVarBinary Oid = 116
	ColTypeBinary        Oid = 117
)

Jump to

Keyboard shortcuts

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