# README
pgtype
pgtype implements Go types for over 70 PostgreSQL types. pgtype is the type system underlying the
https://github.com/jackc/pgx PostgreSQL driver. These types support the binary format for enhanced performance with pgx.
They also support the database/sql Scan
and Value
interfaces and can be used with https://github.com/lib/pq.
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
GetAssignToDstType attempts to convert dst to something AssignTo can assign to.
No description provided by the author
No description provided by the author
NewCompositeBinaryScanner a scanner over a binary encoded composite balue.
No description provided by the author
NewCompositeTextScanner a scanner over a text encoded composite value.
NewCompositeType creates a CompositeType from fields and ci.
NewCompositeTypeValues creates a CompositeType from fields and values.
No description provided by the author
NewEnumType initializes a new EnumType.
NewValue returns a new instance of the same type as v.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL format codes.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
No description provided by the author
No description provided by the author
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
No description provided by the author
PostgreSQL oids for common types.
PostgreSQL oids for common types.
No description provided by the author
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
No description provided by the author
No description provided by the author
No description provided by the author
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
No description provided by the author
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL format codes.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
No description provided by the author
No description provided by the author
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
PostgreSQL oids for common types.
# Structs
ACLItem is used for PostgreSQL's aclitem data type.
No description provided by the author
No description provided by the author
No description provided by the author
ArrayType represents an array type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
EnumType represents a enum type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Hstore represents an hstore column that can be null or have null values associated with its keys.
No description provided by the author
Inet represents both inet and cidr PostgreSQL types.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
QChar is for PostgreSQL's special 8-bit-only "char" type more akin to the C language's char type, or Go's byte type.
Record is the generic PostgreSQL record type such as is created with the "row" function.
No description provided by the author
No description provided by the author
TID is PostgreSQL's Tuple Identifier type.
Time represents the PostgreSQL time type.
Timestamp represents the PostgreSQL timestamp type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Unknown represents the PostgreSQL unknown type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
BinaryEncoder is implemented by types that can encode themselves into the PostgreSQL binary wire format.
ParamFormatPreferrer allows a type to specify its preferred param format instead of it being inferred from whether it is also a BinaryEncoder.
ResultFormatPreferrer allows a type to specify its preferred result format instead of it being inferred from whether it is also a BinaryDecoder.
ScanPlan is a precompiled plan to scan into a type of destination.
No description provided by the author
TextEncoder is implemented by types that can encode themselves into the PostgreSQL text wire format.
TypeValue is a Value where instances can represent different PostgreSQL types.
Value translates values to and from an internal canonical representation for the type.
ValueTranscoder is a value that implements the text and binary encoding and decoding interfaces.
# Type aliases
No description provided by the author
No description provided by the author
BPChar is fixed-length, blank padded char type character(n), char(n).
CID is PostgreSQL's Command Identifier type.
No description provided by the author
CompositeFields scans the fields of a composite type into the elements of the CompositeFields value.
GenericBinary is a placeholder for binary format values that no other type exists to handle.
GenericText is a placeholder for text format values that no other type exists to handle.
No description provided by the author
No description provided by the author
Name is a type used for PostgreSQL's special 63-byte name data type, used for identifiers like table names.
OID (Object Identifier Type) is, according to https://www.postgresql.org/docs/current/static/datatype-oid.html, used internally by PostgreSQL as a primary key for various system tables.
OIDValue (Object Identifier Type) is, according to https://www.postgresql.org/docs/current/static/datatype-OIDValue.html, used internally by PostgreSQL as a primary key for various system tables.
No description provided by the author
No description provided by the author
XID is PostgreSQL's Transaction ID type.