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

# Packages

Package builtinsregistry stores the definitions of builtin functions.

# Functions

AllAggregateBuiltinNames returns a slice containing the subset of AllBuiltinNames that corresponds to aggregate functions.
AllBuiltinNames returns a slice containing all the built-in function names, sorted in alphabetical order.
AllWindowBuiltinNames returns a slice containing the subset of AllBuiltinNames that corresponds to window functions.
CleanEncodingName sanitizes the string meant to represent a recognized encoding.
EmptyGenerator returns a new, empty generator.
GenerateUniqueID encapsulates the logic to generate a unique number from a nodeID and timestamp.
GenerateUniqueInt creates a unique int composed of the current time at a 10-microsecond granularity and the instance-id.
GenerateUniqueUnorderedID creates a unique int64 composed of the current time at a 10-microsecond granularity and the instance-id.
NewAggregateWindowFunc creates a constructor of aggregateWindowFunc with agg initialized by provided aggConstructor.
NewAnyNotNullAggregate returns an aggregate function that returns an arbitrary not-NULL value passed to Add (or NULL if no such value).
NullGenerator returns a new generator that returns a single row of nulls corresponding to the types stored in the tuple typ.
PGIOBuiltinPrefix returns the string prefix to a type's IO functions.
ShouldReset sets shouldReset to true if w is framableAggregateWindowFunc.

# Constants

AnyNotNull is the name of the aggregate returned by NewAnyNotNullAggregate.

# Variables

CastBuiltinNames contains all cast builtin names.
CastBuiltinOIDs maps casts from tgt oid to src family to OIDs.
CheckConsistencyFatal will make crdb_internal.check_consistency() take storage checkpoints and terminate nodes on any inconsistencies when run with stats_only: false.
DatEncodingEnUTF8 is the encoding name for our only supported database encoding, UTF8.
DatEncodingUTFId is the encoding ID for our only supported database encoding, UTF8.
ErrInvalidArgumentForNthValue should be thrown when the nth_value window function is given a value of 'n' less than zero.
ErrInvalidArgumentForNtile is thrown when the ntile function is given an argument less than or equal to zero.
EvalFollowerReadOffset is a function used often with AS OF SYSTEM TIME queries to determine the appropriate offset from now which is likely to be safe for follower reads.
ExecuteQueryViaJobExecContext executes the provided query via the JobExecCtx of the eval.Context.
SpanStatsBatchLimit registers the maximum number of spans allowed in a span stats request payload.
WithMaxStaleness is an injectable function containing the implementation of the with_max_staleness builtin.
WithMinTimestamp is an injectable function containing the implementation of the with_min_timestamp builtin.

# Type aliases

Phase is used to determine if CREATE statements or ALTER statements are being generated for showCreateAllTables.
ProcessUniqueID is an ID which is unique to this process in the cluster.