Skip to main content

Module seed

Module seed 

Source
Expand description

drizzle seed: fills a live database with deterministic test data.

The tables are read from the database itself, so no Rust schema is needed. Needs a database driver feature enabled at build time.

Structs§

SeedOptions
SeedPlan
The parsed --count, --relation and --skip arguments.
SeedScript
The SQL a seed runs, with every value written inline.

Functions§

build_script
Builds the seed script for schema in dialect.
run
Runs drizzle seed: reads the tables from the live database (after the configured table and schema filters, without the migrations tracking table), generates rows for them, and inserts them in one transaction where the driver supports it. With --out, writes the SQL instead.