From Indented Lists to INSERT Statements
You wrote fixtures, config records, or test data in YAML because it's readable. Now that data needs to land in a real table, and nobody wants to hand-type fifty INSERT statements. Converting turns each YAML record into a row and each key into a column, ready to paste into your database client or migration file.
Watch the shape of your data. SQL tables are flat, so nested maps and lists don't fit neatly into columns and may end up flattened or stored as text. YAML also guesses types: 'yes' can become a boolean and '007' can lose its zeros. Check the output before running it.
What are YAML and SQL?
YAML: readable structured data often used for configuration
SQL: fmt.sql
How it works
- Choose your YAML file.
- Check that SQL is selected and press convert.
- Download your new file. We delete both files automatically.
