Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE]: sqlite: deferrable foreign key relations #2252

Open
ItzDerock opened this issue May 4, 2024 · 0 comments
Open

[FEATURE]: sqlite: deferrable foreign key relations #2252

ItzDerock opened this issue May 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ItzDerock
Copy link

Describe what you want

Would love to see support for deferrable foreign key constraints, maybe something like:

latestGeneration: text("latestGenerationId")
  .notNull()
  .references(() => generation.id, {
    deferrable: true,
    initially: "immediate",
  }),

Similar to #1429 but for sqlite and instead focuses on fk constraints instead of unique constraints.

afaik there's no workarounds for this rn as I don't think you can add in custom SQL to the end of a column definition, would love to be wrong though.

@ItzDerock ItzDerock added the enhancement New feature or request label May 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant