package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev

# Functions

CastTypeName returns the name of the type used for casting.
ForEachCast calls fn for every valid cast from a source type to a target type.
LookupCast returns a cast that describes the cast from src to tgt if it exists.
LookupCastVolatility returns the Volatility of a valid cast.
OIDInCastMap checks to see if the cast is in the cast map.
ValidCast returns true if a valid cast exists from src to tgt in the given context.

# Constants

ContextAssignment is a cast implicitly performed during an INSERT, UPSERT, or UPDATE statement.
ContextExplicit is a cast performed explicitly with the syntax CAST(x AS T) or x::T.
ContextImplicit is a cast performed implicitly.
ContextOriginAutomaticIOConversion specifies that a cast's maximum context is not included in Postgres's pg_cast table.
ContextOriginLegacyConversion is used for casts that are not supported by Postgres, but are supported by CockroachDB and continue to be supported for backwards compatibility.
ContextOriginPgCast specifies that a cast's maximum context is based on information in Postgres's pg_cast table.

# Structs

Cast includes details about a cast from one OID to another.

# Type aliases

Context represents the contexts in which a cast can be performed.
ContextOrigin indicates the source of information for a cast's maximum context (see cast.MaxContext below).