drizzle-team / drizzle-team/drizzle-orm

[FEATURE]: Exclusion constraints

Open
#2,813 0 comments 8 reactions 0 assignees View on GitHub
db/postgres drizzle/kit enhancement
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Describe what you want

There doesn't seem to be a way (nor any ticket) about generic [exclusion constraints](https://www.postgresql.org/docs/current/ddl-constraints.html#DDL-CONSTRAINTS-EXCLUSION) in the documentation.

This would be a great add.
I can, of course, work around this with a manual migration, but always nicer to have this constraint in code :)

Contributor guide

Open the contributing guide

Research direction

No repository files, tests, or entry points are named. Start by reading the linked PostgreSQL exclusion-constraint documentation and then locate the project's existing constraint support to determine the API and migration behavior that need extending. Done means generic exclusion constraints can be represented in code and applied through migrations.

Written by the indexing model from the issue text.

Assessment

Tech stack
postgresql, typescript
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.