Reference
Options generated from
bauta schema --help
bauta schema#
Generate or apply CREATE TABLE statements for a target, from source tables.
bauta schema --connection CONNECTION --target TARGET [options]
See Copy a subset for how to use it.
Options#
| Flag | Default | Effect | ||||||
|---|---|---|---|---|---|---|---|---|
--connection CONNECTION |
required | The alias to read table definitions from. | ||||||
--target TARGET |
required | The alias the tables are for; its dialect decides the types. | ||||||
--table TABLE |
A table to create (repeatable) | |||||||
--all-tables |
off | Every table in the database, instead of naming each with --table. | ||||||
--schema SCHEMA |
The schema --all-tables lists, instead of the connection's own. | |||||||
--related |
off | Also every table a subset rooted at --table would copy. | ||||||
--no-children |
off | With --related, only the tables --table references. | ||||||
--no-foreign-keys |
off | Leave foreign keys out of the generated tables. | ||||||
--stage-suffix STAGE_SUFFIX |
Also create
It also takes the common flags: |