Skip to content

feat: handle bounded self-referential FK seeding#32

Merged
machado144 merged 1 commit into
mainfrom
cyclic-fk-handling
May 27, 2026
Merged

feat: handle bounded self-referential FK seeding#32
machado144 merged 1 commit into
mainfrom
cyclic-fk-handling

Conversation

@machado144

Copy link
Copy Markdown
Contributor

Summary

  • add bounded self-reference generation/backfill so nullable self-FKs create roots and non-null self-FKs can seed safely
  • expose the shared self-ref depth option across CLI, TUI, and Serve, with CLI table row overrides matching the UI/TUI per-table controls
  • add hard self-reference fixtures to Postgres/MySQL compose schemas and document the new controls

Examples

  • seedstorm generate --schema schema.yaml --rows 20 --self-ref-depth 2 --table-rows users=200,orders=500
  • Workspace, TUI, and CLI now route through the same generation options for consistent behavior.

Tests

  • GOCACHE=/tmp/seedstorm-gocache /home/youngestaxe/go/bin/go1.25.10 test ./...
  • make test-integration

@github-actions

Copy link
Copy Markdown

⚠️ Invalid PR Title

PR title must follow the Conventional Commits format since we use squash merge:

<type>[optional scope][!]: <description>

Allowed types: feat, fix, docs, style, refactor, test, chore, build, ci, perf, revert

Examples:

  • feat: add new feature
  • fix(seed): handle null FK gracefully
  • feat!: breaking change

@github-actions

github-actions Bot commented May 27, 2026

Copy link
Copy Markdown

StructLint — All checks passed

162 rules validated against .structlint.yaml. No violations found.

View full run · Powered by StructLint

@machado144 machado144 changed the title Handle bounded self-referential FK seeding feat: handle bounded self-referential FK seeding May 27, 2026
@machado144 machado144 merged commit 365a911 into main May 27, 2026
17 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant