We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A very useful new-ish feature (afaict, Postgres 15) is NULLS NOT DISTINCT in Postgres unique indexes. https://www.postgresql.org/docs/current/indexes-unique.html
That is already supported for unique but not for uniqueIndex in drizzle-orm. https://orm.drizzle.team/docs/indexes-constraints#unique
unique
uniqueIndex
drizzle-orm
The API can definitely be same as unique
export const userNulls = pgTable('table', { courseId: uuid().references(() => course.id), lessonId: uuid().references(() => lesson.id), }, (t) => [{ unq: uniqueIndex().on(t.courseId, t.lessonId).nullsNotDistinct() }]);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Feature hasn't been suggested before.
Describe the enhancement you want to request
A very useful new-ish feature (afaict, Postgres 15) is NULLS NOT DISTINCT in Postgres unique indexes.
https://www.postgresql.org/docs/current/indexes-unique.html
That is already supported for
unique
but not foruniqueIndex
indrizzle-orm
.https://orm.drizzle.team/docs/indexes-constraints#unique
The API can definitely be same as
unique
The text was updated successfully, but these errors were encountered: