From [[tables]] to Real Tables: TOML Meets SQL
TOML is great for config and terrible for querying. When a pile of [[products]] or [[users]] entries outgrows its file, moving it into a database lets you filter, join, and index instead of scrolling. Arrays of tables map naturally to rows, and keys become columns.
Watch the edges. SQL tables are flat, so nested tables and inline arrays have to be flattened or stored as text. TOML's typed dates and times may not match your database's column types, and comments vanish entirely. Check the column types and quoting before running anything against production.
What are TOML and SQL?
TOML: fmt.toml
SQL: fmt.sql
How it works
- Choose your TOML file.
- Check that SQL is selected and press convert.
- Download your new file. We delete both files automatically.
