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

feat: sql on index support with drizzle #534

Conversation

ABCxFF
Copy link
Collaborator

@ABCxFF ABCxFF commented Aug 25, 2024

Allows more advanced schemas such as

const events = schema.table("notes", {
    id: ...,
    time: ...,
}, (table) => ({
    eventId: uniqueIndex("event_id").on(table.id),
    eventNameId: index("event_id").on(table.id, Query.desc(table.time))
}));

Copy link
Collaborator Author

ABCxFF commented Aug 25, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @ABCxFF and the rest of your teammates on Graphite Graphite

@ABCxFF ABCxFF marked this pull request as ready for review August 25, 2024 13:58
Copy link
Member

@NathanFlurry NathanFlurry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's wrong with Query.uniqueIndex and Query.index?

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.

2 participants