create_transformation
Create a new dbt SQL transformation by specifying model name, SQL body, materialization type, and target schema.
Instructions
Create a new dbt SQL transformation.
Requires --allow-write.
Args: name: Model name (letters, digits, underscores, hyphens; must start with letter or _). sql_body: dbt-compatible SQL (supports ref(), source(), Jinja). materialization: 'view', 'table', 'incremental', 'ephemeral', or 'snapshot'. description: Optional description. schema_name: Target schema (default 'staging').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| sql_body | Yes | ||
| description | No | ||
| schema_name | No | staging | |
| materialization | No | view |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |