Input format
SQL DDL converters
Have a CREATE TABLE statement and need a typed model in your service? Pick a target language. Works with Postgres, MySQL and SQLite shared subsets.
All SQL DDL converters
15 conversions, all live.
SQL DDL → TypeScript
Live
SQL DDL → Zod
Live
SQL DDL → Yup
Live
SQL DDL → Joi
Live
SQL DDL → Pydantic
Live
SQL DDL → Python dataclass
Live
SQL DDL → Go struct
Live
SQL DDL → Rust struct
Live
SQL DDL → Kotlin data class
Live
SQL DDL → Swift struct
Live
SQL DDL → Dart class
Live
SQL DDL → Java POJO
Live
SQL DDL → C# record
Live
SQL DDL → PHP class
Live
SQL DDL → Ruby class
Live
Sample SQL DDL
Here's the default sample used across the converter pages. Each tool page has additional real-world samples (User profile, e-commerce order, etc.) you can switch to.
CREATE TABLE users ( id SERIAL PRIMARY KEY, name TEXT NOT NULL, email TEXT UNIQUE, is_admin BOOLEAN NOT NULL DEFAULT false );