# yml2ddl

> Generate DDL statements from Starflow YAML schemas for your target data warehouse, with optional JDBC apply support.

## Synopsis

**starlake yml2ddl [options]**

## Description
Generate SQL DDL statements (CREATE TABLE, etc.) from Starflow YAML table definitions.

## Parameters

Parameter|Cardinality|Description
---|---|---
--datawarehouse `<value>`|*Required*|target datawarehouse name (ddl mapping key in types.yml
--connection `<value>`|*Optional*|JDBC connection name with at least read write on database schema
--output `<value>`|*Optional*|Where to output the generated files. ./$datawarehouse/ by default
--catalog `<value>`|*Optional*|Database Catalog if any
--domain `<value>`|*Optional*|Domain to create DDL for. All by default
--schemas `<value>`|*Optional*|List of schemas to generate DDL for. All by default
--apply `<value>`|*Optional*|Does the file contain a header (For CSV files only)
--parallelism `<value>`|*Optional*|parallelism level. By default equals to the available cores: 16
--reportFormat `<value>`|*Optional*|Report format: console, json, html
