generate_ddl
Generate SQL DDL from a PowerDesigner PDM to a .sql file, returning SQL text and file info. Uses the model's native DBMS, with clear errors for mismatched DBMS requests.
Instructions
Generate SQL DDL for a PDM using PowerDesigner's native database generation for the model's DBMS. output_path: target .sql file (created if the directory exists). Returns the SQL text plus file info. The model's own DBMS is used; requesting a different dbms returns a clear error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dbms | No | ||
| model_id | Yes | ||
| output_path | Yes |