Expand description
Stage command - deploy to staging environment with renamed schemas and clusters.
Runs the standard blue/green deployment pipeline that can later be promoted
to production via super::promote.
StructsΒ§
- Partitioned
Objects π - Classification result for objects considered during staging.
- Stage
Analysis π - Planning output produced once and consumed by all stage execution phases.
- Stage
Plan π - Stage
Plan πCluster - Stage
Plan πObject - Stage
Plan πSchema - Stage
Result π - Summary returned after a successful stage run, used for terminal output
and
--json.
FunctionsΒ§
- analyze_
project_ πchanges - Produces the stage deployment plan by diffing against current production snapshot.
- best_
effort_ πdelete - Best-effort delete wrapper used by rollback metadata cleanup.
- best_
effort_ πfetch - Best-effort fetch wrapper used by rollback.
- collect_
stage_ πresources - Derives schema/cluster prerequisites for resource creation.
- create_
databases_ πand_ schemas - Provision all database and schema infrastructure required for a staged deployment.
- create_
resources_ πwith_ rollback - Top-level orchestrator for the staging deployment pipeline.
- create_
staging_ πclusters - Provision staging clusters that mirror the size and configuration of their production counterparts.
- deploy_
objects_ πto_ staging - Execute all object definitions (views, materialized views, indexes) into the staging schemas.
- deploy_
single_ πobject - Deploy a single object to the staging environment.
- log_
cluster_ πcreation - Log verbose details about a newly created staging cluster.
- log_
partition_ πsummary - Reports the partitioning decisions visible to users in verbose mode.
- parse_
qualified_ πschema - Parse one
--redeploy-schemavalue, which must be fully qualified asdatabase.schema. Reuses the SQL parser so reserved-word components quote correctly. - partition_
objects π - Splits objects into stage execution categories.
- record_
stage_ πmetadata - Persists stage deployment state and deferred apply actions.
- resolve_
redeploy_ πschemas - Resolve
--redeploy-schemavalues intoSchemaQualifiers, validating each against the projectβs schemas. - rollback_
staging_ πresources - Rollback staging resources on deployment failure.
- run
- Deploy the project to a staging environment.
- select_
stage_ πobjects - Chooses the initial object set for stage before stage-specific partitioning.
- validate_
no_ πnew_ objects_ in_ existing_ stable_ schemas - Check that no new replacement objects are being added to schemas that already have production objects.
- validate_
project_ πfor_ stage - Runs all preflight database validations required before mutating deployment state.