package
2.2.0-alpha.20190211+incompatible
Repository: https://github.com/cockroachdb/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 the types.T that is closest 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.
NewBitArrayType creates a new BIT type with the given bit width.
NewFloat creates a type alias for FLOAT with the given precision.
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.

# Constants

TStringVariantCHAR is the "standard SQL" string type of maximum length.
TStringVariantQCHAR is a special PostgreSQL-only type supported for compatibility.
TStringVariantSTRING is the canonical CockroachDB string type.
TStringVariantVARCHAR is the "standard SQL" string type of varying length.

# Variables

Bit is an immutable T instance.
Bool is an immutable T instance.
Bytes is an immutable T instance.
Char is an immutable T instance.
Date is an immutable T instance.
Decimal is an immutable T instance.
Float4 is an immutable T instance.
Float8 is an immutable T instance.
INet is an immutable T instance.
Int2 is an immutable T instance.
Int2vector is an immutable T instance.
Int4 is an immutable T instance.
Int8 is an immutable T instance.
IntegerTypeNames maps a TInt data width to a canonical type name.
Interval is an immutable T instance.
JSON is an immutable T instance.
Name is an immutable T instance.
Oid is an immutable T instance.
OidVector is an immutable T instance.
QChar 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.
Serial2 is an immutable T instance.
Serial4 is an immutable T instance.
Serial8 is an immutable T instance.
String 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.
VarBit is an immutable T instance.
VarChar is an immutable T instance.

# Structs

TArray represents an ARRAY column type.
TBitArray represents a BIT or VARBIT type.
TBool represents a BOOLEAN type.
TBytes represents a BYTES or BLOB type.
TCollatedString represents a STRING, CHAR, QCHAR or VARCHAR type with a collation locale.
TDate represents a DATE type.
TDecimal represents a DECIMAL or NUMERIC type.
TFloat represents a REAL or DOUBLE 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.
TSerial represents a SERIAL type.
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.

# Type aliases

TStringVariant distinguishes between flavors of string types.
TTuple represents tuple column types.