Updated
On this page
Reference for the pgdesign generate command — usage, flags, arguments, and examples for the generate subcommand of the pgdesign CLI.
#pgdesign generate
Generate SQL DDL from TOML schema file(s) or directory
Effect: read_only
#Flags
| Name | Short | Type | Default | Env | Description |
|---|---|---|---|---|---|
--idempotent | bool | Add IF NOT EXISTS guards to all generated DDL statements | |||
--comments | bool | True | Include COMMENT ON statements in the generated output | ||
--format | str | sql | Output format for the generated schema representation | ||
--strict-nf | bool | Promote normal form violations to errors instead of warnings |
#Arguments
| Name | Required | Description |
|---|---|---|
path | yes | Path to TOML schema file(s) or directory containing them |