Documentation Index
Fetch the complete documentation index at: https://docs.sqlbuild.com/llms.txt
Use this file to discover all available pages before exploring further.
sqb state
Manages the virtual mode state store lifecycle, locks, and checkpoints. Requiresenvironment_mode = "virtual".
Usage
Subcommands
init
Create state tables in the configured schema.migrate
Back up the current state schema and re-initialize state tables. Creates a backup schema (e.g.sqlbuild_state__backup_<id>) before re-initializing.
rollback
Restore state from a backup.reset
Drop all state tables. Requiresallow_reset = true in the environment state config and --auto-approve on the command line.
adopt
Convert existing stateless warehouse relations into versioned physical relations with VDE views. Interactive only - requires typed confirmation.| Flag | Description |
|---|---|
--allow-copy | Allow CTAS copy fallback when native rename is not available |
detach
Collapse a VDE back into stateless warehouse relations. Interactive only - requires typed confirmation. The VDE must be finalized.| Flag | Description |
|---|---|
--allow-copy | Allow CTAS copy fallback when native rename is not available |

