Documentation Index
Fetch the complete documentation index at: https://docs.ellomas.com/llms.txt
Use this file to discover all available pages before exploring further.
Circular Dependencies
Real-world schemas often have circular foreign key dependencies. Seedling handles these with multi-pass generation.Detection
During planning, Seedling detects cycles in the FK dependency graph: When a cycle is detected, it is split into pass groups. Tables in a cycle are generated together across multiple passes.Nullable Circular FKs
If at least one column in the cycle is nullable:- Pass 1: Generate rows with NULL in the nullable FK
- Pass 2: Update the NULL FKs with valid references
Non-Nullable Circular FKs
If all columns in a cycle areNOT NULL:
- Use
SET CONSTRAINTS ALL DEFERREDwithin a transaction - Generate all rows without FK validation
- Commit — deferred constraints are checked at commit time
Many-to-Many Join Tables
Join tables (e.g.,users_roles) are handled by:
- Generating both parent tables first
- Generating the join table with FK references to both parents
- Configurable join factor (how many links per parent row)