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

add .where & .orWhere @ CreateIndexBuilder. #371

Merged
merged 8 commits into from
Mar 22, 2023

Conversation

igalklebanov
Copy link
Member

@igalklebanov igalklebanov commented Mar 20, 2023

closes #302.

Adds the ability to create partial indexes in postgres / sqlite.

  • only columns known in compile-time (used in .column/.columns) provide autocompletion,
    unknown columns require sql template tag to be referred to.
  • parameter types are unknown.
  • parameters are not allowed (engine throws), so they're turned to literals before parsing.

@igalklebanov igalklebanov added api Related to library's API enhancement New feature or request postgres Related to PostgreSQL sqlite Related to sqlite labels Mar 20, 2023
@igalklebanov igalklebanov marked this pull request as ready for review March 20, 2023 22:17
@koskimas koskimas merged commit 36abc5c into kysely-org:master Mar 22, 2023
@igalklebanov igalklebanov deleted the create-index-where branch March 23, 2023 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to library's API enhancement New feature or request postgres Related to PostgreSQL sqlite Related to sqlite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating a Partial Index
2 participants