Skip to main content

Module dev

Module dev 

Source
Expand description

mz-deploy dev β€” developer inner-loop overlay command.

Creates per-developer overlay databases (<base_db>__<profile>) from the dirty subset of the project’s views, materialized views, and indexes. Every overlay materialized view and index is rewritten to run on a single user-supplied target cluster. The overlay is drop-and-rebuilt on every invocation.

Requires the materialize_developer role plus CREATEDB at run time.

FunctionsΒ§

create_phase πŸ”’
Phase 2 of the dev rebuild: create overlay databases, schemas, and objects.
drop_database πŸ”’
drop_phase πŸ”’
Phase 1 of the dev rebuild: drop every overlay database recorded for this (profile, project) pair, then purge the manifest rows. Finally sweep any in-project <base_db>__<profile> names not in the manifest (catalog restore, interrupted prior run).
overlay_db_name πŸ”’
Overlay database name convention: <base_db>__<profile>.
print_plan πŸ”’
refuse_if_targets_production_cluster πŸ”’
Refuse to proceed if the user-supplied target cluster hosts a promoted deployment.
run
Top-level entry point for mz-deploy dev.