package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
New creates a new Builder structure initialized with the given parsed SQL statement.
NewScalar creates a new ScalarBuilder.
RegisterOpaque registers an opaque handler for a specific statement type.
# Constants
OpaqueDDL is used for statements that change a schema and cannot be executed following a mutation in the same transaction.
OpaqueMutation is used for statements that mutate data and cannot be run as part of read-only transactions.
OpaqueReadOnly is used for statements that do not mutate state as part of the transaction, and can be run in read-only transactions.
# Variables
UniquenessChecksForGenRandomUUIDClusterMode controls the cluster setting for enabling uniqueness checks for UUID columns set to gen_random_uuid().
# Structs
Builder holds the context needed for building a memo structure from a SQL statement.
ScalarBuilder is a specialized variant of Builder that can be used to create a scalar from a TypedExpr.
# Type aliases
BuildOpaqueFn is a handler for building the metadata for an opaque statement.
OpaqueType indicates whether an opaque statement can mutate data or change schema.