Skip to content

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’;

```bash dbsprout init --file schema.sql ``` ```bash dbsprout init --file schema.dbml ``` ```bash dbsprout init --file schema.prisma ``` ```bash dbsprout init --file schema.mmd ``` ```bash dbsprout init --file schema.puml ```

Add --dry-run to preview the parsed schema without writing dbsprout.toml or a snapshot:

Terminal window
dbsprout init --file schema.sql --dry-run

Introspect models directly from a Django project:

Terminal window
dbsprout init --django --django-apps myapp,billing

No database to insert into, so write files:

Terminal window
# CSV — one file per table, with headers
dbsprout generate --rows 500 --output-format csv
# JSON — one pretty-printed array per table
dbsprout generate --output-format json --seed 123

Output lands in ./seeds/ (override with --output-dir).

Terminal window
dbsprout validate