-
-
Notifications
You must be signed in to change notification settings - Fork 187
feat(db): add full text search utilities #425
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 issues found across 3 files
Prompt for AI agents (all 2 issues)
Understand the root cause of the following 2 issues and fix them.
<file name="packages/db/src/lib/full-text-search.ts">
<violation number="1" location="packages/db/src/lib/full-text-search.ts:51">
Casting the language argument to regconfig is required; otherwise PostgreSQL sees a text parameter and `to_tsvector($1, ...)` fails at runtime with “function to_tsvector(text, text) does not exist.”</violation>
<violation number="2" location="packages/db/src/lib/full-text-search.ts:64">
The language argument must be cast to regconfig; otherwise the parameterized call becomes `to_tsquery($1, ...)` and PostgreSQL raises “function to_tsquery(text, text) does not exist.”</violation>
</file>
React with 👍 or 👎 to teach cubic. Mention @cubic-dev-ai to give feedback, ask questions, or re-run the review.
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 1 file
Description
Briefly describe what you did and why.
Screenshots / Recordings
Add screenshots or recordings here to help reviewers understand your changes.
Type of Change
Related Areas
Testing
Checklist
Notes
(Optional) Add anything else you'd like to share.
By submitting, I confirm I understand and stand behind this code. If AI was used, I’ve reviewed and verified everything myself.
Summary by cubic
Added full-text search utilities in the db package to simplify building PostgreSQL tsvector/tsquery expressions with Drizzle. Makes search queries easier and type-safe.
Written for commit db68560. Summary will update automatically on new commits.