Skip to main content

Quickstart

This guide walks through the core workflow: introspect a database, generate test data, and customize the output.

Prerequisites

  • A running Postgres or MySQL database with schema
  • Go 1.25+ (for CLI installation)

1. Install Seedling

Or use Docker:

2. Introspect Your Schema

Point Seedling at your database to produce a schema file:
This queries information_schema and writes a YAML file containing all tables, columns, types, foreign keys, and constraints. For MySQL:

3. Generate Test Data

Generate 100 rows per root table:
This produces a SQL file with INSERT INTO statements respecting FK dependencies, unique constraints, and column types.

4. Verify the Output

5. Generate Deterministically (Optional)

Use a fixed seed for reproducible output:
Run it again — the output is byte-identical.

What’s Next?