# DDL to Data – Generate realistic test data from SQL schemas

I built DDL to Data after repeatedly pushing back on "just use production data and mask it" requests. Teams needed populated databases for testing, but pulling prod meant security reviews, PII scrubbing, and DevOps tickets. Hand-written seed scripts were the alternative slow, fragile, and out of sy…

- **Page:** https://magpie.gallery/i/ddl-to-data-generate-realistic-test-data-from-sql-3odv
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Runs on:** web
- **Tags:** test-data, sql, schema, database, seed

## Source

Web · tbrannan: DDL to Data – Generate realistic test data from SQL schemas

- **Original:** https://news.ycombinator.com/item?id=46511578

> I built DDL to Data after repeatedly pushing back on "just use production data and mask it" requests. Teams needed populated databases for testing, but pulling prod meant security reviews, PII scrubbing, and DevOps tickets. Hand-written seed scripts were the alternative slow, fragile, and out of sync the moment schemas changed. Paste your CREATE TABLE statements, get realistic test data back. It parses your schema, preserves foreign key relationships, and generates data that looks real, emails look like emails, timestamps are reasonable, uniqueness constraints are honored. No setup, no config. Works with PostgreSQL and MySQL. https://ddltodata.com Would love feedback from anyone who deals with test data or staging environments. What's missing?

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
