Skip to main content

Module oid

Module oid 

Source
Expand description

PostgreSQL type object identifiers and the binary/text format marker.

Structs§

PgType
A PostgreSQL type: its OID and canonical name.

Enums§

Format
The wire format of a value: text or binary.

Constants§

BOOLOID
bool
BOOL_ARRAY_OID
bool[]
BPCHAROID
bpchar (blank-padded char(n))
BPCHAR_ARRAY_OID
bpchar[]
BYTEAOID
bytea
BYTEA_ARRAY_OID
bytea[]
CIDROID
cidr
CIDR_ARRAY_OID
cidr[]
DATEOID
date
DATE_ARRAY_OID
date[]
FLOAT4OID
float4
FLOAT4_ARRAY_OID
float4[]
FLOAT8OID
float8
FLOAT8_ARRAY_OID
float8[]
INETOID
inet
INET_ARRAY_OID
inet[]
INT2OID
int2
INT2_ARRAY_OID
int2[]
INT4OID
int4
INT4_ARRAY_OID
int4[]
INT8OID
int8
INT8_ARRAY_OID
int8[]
INTERVALOID
interval
INTERVAL_ARRAY_OID
interval[]
JSONBOID
jsonb
JSONB_ARRAY_OID
jsonb[]
JSONOID
json
JSON_ARRAY_OID
json[]
NAMEOID
name
NAME_ARRAY_OID
name[]
NUMERICOID
numeric
NUMERIC_ARRAY_OID
numeric[]
OIDOID
oid
TEXTOID
text
TEXT_ARRAY_OID
text[]
TIMEOID
time
TIMESTAMPOID
timestamp (without time zone)
TIMESTAMPTZOID
timestamptz
TIMESTAMPTZ_ARRAY_OID
timestamptz[]
TIMESTAMP_ARRAY_OID
timestamp[]
TIMETZOID
timetz
TIMETZ_ARRAY_OID
timetz[]
TIME_ARRAY_OID
time[]
UUIDOID
uuid
UUID_ARRAY_OID
uuid[]
VARCHAROID
varchar
VARCHAR_ARRAY_OID
varchar[]

Statics§

BOOL
bool
BYTEA
bytea
CIDR
cidr
DATE
date
FLOAT4
float4
FLOAT8
float8
INET
inet
INT2
int2
INT4
int4
INT8
int8
INTERVAL
interval
JSON
json
JSONB
jsonb
NUMERIC
numeric
TEXT
text
TIME
time
TIMESTAMP
timestamp
TIMESTAMPTZ
timestamptz
TIMETZ
timetz
UUID
uuid
VARCHAR
varchar

Functions§

array_element
Maps an array type OID back to its element type, when known.
array_oid
Returns the array type OID for the given element type.
array_oid_checked
Like array_oid, for use in const contexts where a missing mapping has to fail at compile time instead of silently declaring the wrong type.
is_array
Returns true if oid is a known array type.

Type Aliases§

Oid
A PostgreSQL type object identifier (OID).