Generate test data
generate_test_dataGenerate synthetic INSERT statements for any table, respecting column types, NOT NULL, and DEFAULT constraints. Returns SQL strings for seeding dev or staging environments without executing writes.
Instructions
Generate synthetic INSERT statements for a table — typed values respecting column type, NOT NULL, and DEFAULT. Returns the SQL as strings; does NOT execute it. Useful for seeding dev / staging environments. The generator is deterministic when a seed is provided. Foreign keys are NOT resolved — the caller must pre-seed referenced rows or drop the FK before applying. Hard cap of 10000 rows per call. Pure read (the actual writes go through run_write under unrestricted mode).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | No | ||
| seed | No | ||
| table | Yes | ||
| schema | Yes | ||
| database | No | Optional: target a configured secondary (read-only) database by name; omit for the primary. Call list_databases to see the configured ids. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ||
| schema | Yes | ||
| statements | Yes | ||
| rows_generated | Yes | ||
| skipped_columns | Yes |