package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
AlterPolicy implements ALTER POLICY.
AlterTable implements ALTER TABLE.
CommentOnColumn implements COMMENT ON COLUMN xxx IS xxx statement.
CommentOnConstraint implements COMMENT ON CONSTRAINT xxx ON table_name IS xxx statement.
CommentOnDatabase implements COMMENT ON DATABASE xxx IS xxx statement.
CommentOnIndex implements COMMENT ON INDEX xxx iS xxx statement.
CommentOnSchema implements COMMENT ON SCHEMA xxx IS xxx statement;.
CommentOnTable implements COMMENT ON TABLE xxx IS xxx statement.
CommentOnType implements COMMENT ON TYPE xxx IS xxx statement.
No description provided by the author
No description provided by the author
CreateIndex implements CREATE INDEX.
CreatePolicy implements CREATE POLICY.
No description provided by the author
No description provided by the author
CreateTrigger creates a new trigger on a table in the declarative schema changer.
DropDatabase implements DROP DATABASE.
No description provided by the author
DropIndex implements DROP INDEX.
DropOwnedBy implements DROP OWNED BY.
DropPolicy implements DROP POLICY.
DropSchema implements DROP SCHEMA.
DropSequence implements DROP SEQUENCE.
DropTable implements DROP TABLE.
No description provided by the author
DropType implements DROP TYPE.
DropView implements DROP VIEW.
ExtractColumnIDsInExpr extracts column IDs used in expr.
IsFullySupportedWithFalsePositive returns if this statement is "fully supported" in the declarative schema changer under mode and active cluster version.
No description provided by the author
NewPrimaryIndexChain initializes a new primaryIndexChain.
Process dispatches on the statement type to populate the BuilderState embedded in the BuildCtx.
No description provided by the author
# Constants
TableTentativeIdsStart is the beginning of a sequence of increasing IDs for builder internal use for each table.
# Structs
ResolveParams specifies the behavior of the methods in the NameResolver interface.
# Interfaces
BuildCtx wraps BuilderState and exposes various convenience methods for the benefit of the scbuildstmts package.
BuilderState encapsulates the state of the planned schema changes, hiding its internal state to anything that ends up using it and only allowing state changes via the provided methods.
ClusterAndSessionInfo provides general cluster and session info.
ElementReferences looks up an element's forward and backward references.
EventLogState encapsulates the state of the metadata to decorate the eventlog with.
No description provided by the author
NameResolver looks up elements in the catalog by name, and vice-versa.
NodeStatusInfo provides access to observe node descriptors.
PrivilegeChecker checks an element's privileges.
ReferenceProvider provides all referenced objects with in current DDL statement.
RegionProvider abstracts the lookup of regions.
SchemaFeatureChecker checks if a schema change feature is allowed by the database administrator.
No description provided by the author
TableHelpers has methods useful for creating new table elements.
Telemetry allows incrementing schema change telemetry counters.
TemporarySchemaProvider provides functions needed to help support temporary schemas.
TreeAnnotator provides interfaces to be able to modify the AST safely, by providing a copy and support for adding annotations.
TreeContextBuilder exposes convenient tree-package context builder methods.
No description provided by the author