package
2.1.0-alpha.20180416+incompatible
Repository: https://github.com/coyle/cockroach.git
Documentation: pkg.go.dev

# Functions

ArrayOf creates a type alias for an array of the given element type and fixed bounds.
CastTargetToDatumType produces a types.T equivalent to the given SQL cast target type.
ColTypeAsString print a T to a string.
DatumTypeToColumnType produces a SQL column type equivalent to the given Datum type.
NewFloat creates a type alias for FLOAT with the given precision.
NewIntBitType creates a type alias for INT named BIT with the given bit width.
OidTypeToColType produces an TOid equivalent to the given Datum type.
TOidToType produces a Datum type equivalent to the given TOid.
TypeForNonKeywordTypeName returns the column type for the string name of a type, if one exists.

# Variables

BigInt is an immutable T instance.
BigSerial is an immutable T instance.
Bit is an immutable T instance.
Blob is an immutable T instance.
Bool is an immutable T instance.
Boolean is an immutable T instance.
Bytea is an immutable T instance.
Bytes is an immutable T instance.
Char is an immutable T instance.
Date is an immutable T instance.
Dec is an immutable T instance.
Decimal is an immutable T instance.
Double is an immutable T instance.
Float is an immutable T instance.
Float4 is an immutable T instance.
Float8 is an immutable T instance.
INet is an immutable T instance.
Int is an immutable T instance.
Int2 is an immutable T instance.
Int2vector is an immutable T instance.
Int4 is an immutable T instance.
Int64 is an immutable T instance.
Int8 is an immutable T instance.
Integer is an immutable T instance.
Interval is an immutable T instance.
JSON is an immutable T instance.
JSONB is an immutable T instance.
Name is an immutable T instance.
Numeric is an immutable T instance.
Oid is an immutable T instance.
OidVector is an immutable T instance.
Real is an immutable T instance.
RegClass is an immutable T instance.
RegNamespace is an immutable T instance.
RegProc is an immutable T instance.
RegProcedure is an immutable T instance.
RegType is an immutable T instance.
Serial is an immutable T instance.
Serial2 is an immutable T instance.
Serial4 is an immutable T instance.
Serial8 is an immutable T instance.
SmallInt is an immutable T instance.
SmallSerial is an immutable T instance.
String is an immutable T instance.
Text is an immutable T instance.
Time is an immutable T instance.
Timestamp is an immutable T instance.
TimestampWithTZ is an immutable T instance.
UUID is an immutable T instance.
VarChar is an immutable T instance.

# Structs

TArray represents an ARRAY column type.
TBool represents a BOOLEAN type.
TBytes represents a BYTES or BLOB type.
TCollatedString represents a STRING, CHAR or VARCHAR type with a collation locale.
TDate represents a DATE type.
TDecimal represents a DECIMAL or NUMERIC type.
TFloat represents a REAL, DOUBLE or FLOAT type.
TInt represents an INT, INTEGER, SMALLINT or BIGINT type.
TInterval represents an INTERVAL type.
TIPAddr represents an INET or CIDR type.
TJSON represents the JSON column type.
TName represents a a NAME type.
TOid represents an OID type, which is the type of system object identifiers.
TString represents a STRING, CHAR or VARCHAR type.
TTime represents a TIME type.
TTimestamp represents a TIMESTAMP type.
TTimestampTZ represents a TIMESTAMP type.
TUUID represents a UUID type.
TVector is the base for VECTOR column types, which are Postgres's older, limited version of ARRAYs.

# Interfaces

CastTargetType represents a type that is a valid cast target.
ColTypeFormatter knows how to format a ColType to a bytes.Buffer.
T represents a type in a column definition.