Skip to main content

Module clusters

Module clusters 

Source
Expand description

Cluster definition loading and validation.

Loads cluster definitions from <root>/clusters/ directory. Each .sql file defines a single cluster with a required CREATE CLUSTER statement and optional GRANT and COMMENT statements.

Structsยง

ClusterDefinition ๐Ÿ”’
A parsed cluster definition from a .sql file in the clusters/ directory.

Functionsยง

apply_cluster_suffix ๐Ÿ”’
Apply a suffix to all cluster name references within a ClusterDefinition.
classify_cluster_statements ๐Ÿ”’
Classify parsed statements into a ClusterDefinition, returning validation errors.
load_clusters ๐Ÿ”’
Load all cluster definitions from <root>/clusters/.
suffixed_ident ๐Ÿ”’
Append a suffix to an Ident, returning a new Ident.