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§
- Cluster
Definition 🔒 - A parsed cluster definition from a
.sqlfile in theclusters/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. - extract_
replication_ 🔒factor - Extract the desired REPLICATION FACTOR from a CreateClusterStatement’s options.
- extract_
size 🔒 - Extract the desired SIZE from a CreateClusterStatement’s options.
- load_
clusters 🔒 - Load all cluster definitions from
<root>/clusters/. - suffixed_
ident 🔒 - Append a suffix to an
Ident, returning a newIdent.