(c: Composition, parser: WorkflowArgumentParser)
| 32 | |
| 33 | |
| 34 | def workflow_default(c: Composition, parser: WorkflowArgumentParser) -> None: |
| 35 | c.up("materialized", Service("mz-debug", idle=True)) |
| 36 | c.invoke("cp", "mz-debug:/usr/local/bin/mz-debug", ".") |
| 37 | container_id = c.container_id("materialized") |
| 38 | if container_id is None: |
| 39 | raise ValueError("Failed to get materialized container ID") |
| 40 | |
| 41 | spawn.runv( |
| 42 | [ |
| 43 | "./mz-debug", |
| 44 | "emulator", |
| 45 | "--docker-container-id", |
| 46 | container_id, |
| 47 | "--mz-connection-url", |
| 48 | "postgres://mz_system@localhost:6877/materialize", |
| 49 | ] |
| 50 | ) |
nothing calls this directly
no test coverage detected