Skip to main content

Module stage

Module stage 

Source
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Β§

PartitionedObjects πŸ”’
Classification result for objects considered during staging.
StageAnalysis πŸ”’
Planning output produced once and consumed by all stage execution phases.
StagePlan πŸ”’
StagePlanCluster πŸ”’
StagePlanObject πŸ”’
StagePlanSchema πŸ”’
StageResult πŸ”’
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-schema value, which must be fully qualified as database.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-schema values into SchemaQualifiers, 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.