package
2.2.0-alpha.20190211+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
IsAdditiveType returns true if the T supports addition and subtraction.
IsDateTimeType returns true if the T is date- or time-related type.
IsStringType returns true iff t is String or a collated string type.
IsValidArrayElementType returns true if the T can be used in TArray.
UnwrapType returns the base T type for a provided type, stripping a *TOidWrapper if present.
WrapTypeWithOid wraps a T with a custom Oid.
# Constants
MaxPlaceholderIdx is the maximum allowed value of a PlaceholderIdx.
# Variables
Any can be any type.
AnyArray is the type of a DArray with a wildcard parameterized type.
AnyNonArray contains all non-array types.
ArrayOids is a set of all oids which correspond to an array type.
BitArray is the type of a DBitArray.
Bool is the type of a DBool.
Bytes is the type of a DBytes.
Date is the type of a DDate.
Decimal is the type of a DDecimal.
FamArray is the type family of a DArray.
FamCollatedString is the type family of a DString.
FamPlaceholder is the type family of a placeholder.
FamTuple is the type family of a DTuple.
Float is the type of a DFloat.
INet is the type of a DIPAddr.
Int is the type of a DInt.
Interval is the type of a DInterval.
IntVector is a type-alias for an IntArray with a different OID.
JSON is the type of a DJSON.
Name is a type-alias for String with a different OID.
NameArray is the type family of a DArray containing the Name alias type.
Oid is the type of an OID.
OidToType maps Postgres object IDs to CockroachDB types.
OidVector is a type-alias for an OidArray with a different OID.
RegClass is the type of an regclass OID variant.
RegNamespace is the type of an regnamespace OID variant.
RegProc is the type of an regproc OID variant.
RegProcedure is the type of an regprocedure OID variant.
RegType is the type of an regtype OID variant.
String is the type of a DString.
Time is the type of a DTime.
Timestamp is the type of a DTimestamp.
TimestampTZ is the type of a DTimestampTZ.
Unknown is the type of an expression that statically evaluates to NULL.
UUID is the type of a DUuid.
# Structs
TArray is the type of a DArray.
TCollatedString is the type of strings with a locale.
TOid represents an alias to the Int type with a different Postgres OID.
TOidWrapper is a T implementation which is a wrapper around a T, allowing custom Oid values to be attached to the T.
TPlaceholder is the type of a placeholder.
TTuple is the type of a DTuple.
# Interfaces
T represents a SQL type.
# Type aliases
PlaceholderIdx is the 0-based index of a placeholder.