From a Schema File
No database needed. DBSprout parses a schema file (or Django models) and generates data the same way it would from a live connection.
import { Tabs, TabItem } from ‘@astrojs/starlight/components’;
1. Parse the schema
Section titled “1. Parse the schema”Add --dry-run to preview the parsed schema without writing dbsprout.toml
or a snapshot:
dbsprout init --file schema.sql --dry-runDjango models
Section titled “Django models”Introspect models directly from a Django project:
dbsprout init --django --django-apps myapp,billing2. Generate as CSV or JSON
Section titled “2. Generate as CSV or JSON”No database to insert into, so write files:
# CSV — one file per table, with headersdbsprout generate --rows 500 --output-format csv
# JSON — one pretty-printed array per tabledbsprout generate --output-format json --seed 123Output lands in ./seeds/ (override with --output-dir).
3. Validate
Section titled “3. Validate”dbsprout validate- Schema Input — every supported format in detail
- Output Formats — JSONL, Parquet, direct insert, UPSERT