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.