Expand description
Data definition language (DDL).
This module houses the handlers for statements that modify the catalog, like
ALTER
, CREATE
, and DROP
.
ModulesΒ§
- connection π
- Data definition language (DDL) utilities for CONNECTION objects.
StructsΒ§
- Alter
Connection Option Extracted - Alter
Source AddSubsource Option Extracted - Avro
Schema Option Extracted - Cluster
Alter Option Extracted - Cluster
Alter Until Ready Option Extracted - Cluster
Feature Extracted - Cluster
Option Extracted - Continual
Task Option Extracted - Create
Connection Option Extracted - Create
Sink Option Extracted - Create
Source Option Extracted - Create
Subsource Option Extracted - Create
Type List Option Extracted - Create
Type MapOption Extracted - CsrConfig
Option Extracted - Creating this by hand instead of using generate_extracted_config! macro because the macro doesnβt support parameterized enums. See https://github.com/MaterializeInc/database-issues/issues/6698
- Index
Option Extracted - Load
Generator Option Extracted - Materialized
View Option Extracted - MySql
Config Option Extracted - Network
Policy Option Extracted - Network
Policy Rule Option Extracted - PgConfig
Option Extracted - Planned
Role Attributes - Replica
Option Extracted - Schema
- SqlServer
Config Option Extracted - Table
From Source Option Extracted - Table
Option Extracted
EnumsΒ§
ConstantsΒ§
- MAX_
NUM_ πCOLUMNS
StaticsΒ§
FunctionsΒ§
- alter_
retain_ πhistory - apply_
source_ πenvelope_ encoding - check_
partition_ πby - Given a relation desc and a column list, checks that:
- contains_
single_ πreplica_ objects - Returns
true
if the cluster has any object that requires a single replica. Returnsfalse
if the cluster has no objects. - continual_
task_ πquery - dependency_
prevents_ πdrop - Does the dependency
dep
prevent a drop of a non-cascade query? - describe_
alter_ cluster_ set_ options - describe_
alter_ connection - describe_
alter_ index_ options - describe_
alter_ network_ policy - describe_
alter_ object_ rename - describe_
alter_ object_ swap - describe_
alter_ retain_ history - describe_
alter_ role - describe_
alter_ secret_ options - describe_
alter_ set_ cluster - describe_
alter_ sink - describe_
alter_ source - describe_
alter_ system_ reset - describe_
alter_ system_ reset_ all - describe_
alter_ system_ set - describe_
alter_ table_ add_ column - describe_
comment - describe_
create_ cluster - describe_
create_ cluster_ replica - describe_
create_ connection - describe_
create_ continual_ task - describe_
create_ database - describe_
create_ index - describe_
create_ materialized_ view - describe_
create_ network_ policy - describe_
create_ role - describe_
create_ schema - describe_
create_ secret - describe_
create_ sink - describe_
create_ source - describe_
create_ subsource - describe_
create_ table - describe_
create_ table_ from_ source - describe_
create_ type - describe_
create_ view - describe_
create_ webhook_ source - describe_
drop_ objects - describe_
drop_ owned - ensure_
cluster_ πis_ not_ managed - Returns an error if the given cluster is a managed cluster
- get_
encoding π - get_
encoding_ πinner - get_
key_ πenvelope - Extract the key envelope, if it is requested
- get_
unnamed_ πkey_ envelope - Gets the key envelope for a given key encoding when no name for the key has been requested by the user.
- kafka_
sink_ πbuilder - key_
constraint_ πerr - load_
generator_ πast_ to_ generator - plan_
alter_ cluster - plan_
alter_ cluster_ rename - plan_
alter_ cluster_ replica_ rename - plan_
alter_ cluster_ swap - plan_
alter_ connection - plan_
alter_ index_ options - plan_
alter_ item_ rename - plan_
alter_ item_ set_ cluster - plan_
alter_ network_ policy - plan_
alter_ object_ rename - plan_
alter_ object_ swap - plan_
alter_ retain_ history - plan_
alter_ role - plan_
alter_ schema_ rename - plan_
alter_ schema_ swap - plan_
alter_ secret - plan_
alter_ sink - plan_
alter_ source - plan_
alter_ system_ reset - plan_
alter_ system_ reset_ all - plan_
alter_ system_ set - plan_
alter_ table_ add_ column - plan_
cluster_ πschedule - Convert a
ClusterScheduleOptionValue
into aClusterSchedule
. - plan_
comment - plan_
compute_ πreplica_ config - Convert an
Option<OptionalDuration>
andbool
into aComputeReplicaConfig
. - plan_
create_ cluster - Convert a
CreateClusterStatement
into aPlan
. - plan_
create_ cluster_ inner - plan_
create_ cluster_ replica - plan_
create_ connection - plan_
create_ continual_ task - plan_
create_ database - plan_
create_ index - plan_
create_ materialized_ view - plan_
create_ network_ policy - plan_
create_ role - plan_
create_ schema - plan_
create_ secret - plan_
create_ sink - plan_
create_ source - plan_
create_ subsource - plan_
create_ table - plan_
create_ table_ from_ source - plan_
create_ type - plan_
create_ view - plan_
create_ webhook_ source - plan_
drop_ πcluster - plan_
drop_ πcluster_ replica - plan_
drop_ πdatabase - plan_
drop_ πitem - Returns the
CatalogItemId
of the item we should drop, if it exists. - plan_
drop_ πnetwork_ policy - plan_
drop_ objects - plan_
drop_ owned - plan_
drop_ πrole - plan_
drop_ πschema - plan_
index_ πoptions - plan_
replica_ πconfig - plan_
retain_ πhistory - plan_
retain_ πhistory_ option - plan_
role_ πattributes - plan_
role_ πvariable - plan_
sink π - This function will plan a sink as if it does not exist in the catalog. This is so the planning logic is reused by both CREATE SINK and ALTER SINK planning. It is the responsibility of the callers (plan_create_sink and plan_alter_sink) to check for name collisions if this is important.
- plan_
source_ πexport_ desc - Plans the RelationDesc for a source export (subsource or table) that has a defined list of columns and constraints.
- plan_
table_ πoptions - plan_
view - resolve_
cluster π - resolve_
cluster_ πreplica - resolve_
database π - resolve_
item_ πor_ type - resolve_
network_ πpolicy - resolve_
schema π - source_
sink_ πcluster_ config - Determine the cluster ID to use for this item.
- typecheck_
debezium π - unplan_
cluster_ πschedule - Convert a
ClusterSchedule
into aClusterScheduleOptionValue
. - unplan_
compute_ πreplica_ config - Convert a
ComputeReplicaConfig
into anOption<OptionalDuration>
andbool
. - unplan_
create_ cluster - Convert a
CreateClusterPlan
into aCreateClusterStatement
.