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(client): Add support for full text search #1003

Merged
merged 15 commits into from
Aug 11, 2024

Conversation

AdeelK93
Copy link
Contributor

Change Summary

Checklist

  • Unit tests for the changes exist
  • Tests pass without significant drop in coverage
  • Documentation reflects changes where applicable
  • Test snapshots have been updated if applicable

Agreement

By submitting this pull request, I confirm that you can use, modify, copy and redistribute this contribution, under the terms of your choice.

Copy link
Owner

@RobertCraigie RobertCraigie left a comment

Choose a reason for hiding this comment

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

Thanks so much!

src/prisma/generator/schema.py Outdated Show resolved Hide resolved
@@ -319,6 +320,7 @@ post = await db.post.find_first(
'endswith': 'must end with string',
'in': ['find_string_1', 'find_string_2'],
'mode': 'insensitive',
'search': 'full-text query',
Copy link
Owner

Choose a reason for hiding this comment

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

nit: might be nice to include an example of the special full-text syntax & link to either Prisma or psql / mysql docs for the syntax.

@RobertCraigie RobertCraigie merged commit ab7c380 into RobertCraigie:main Aug 11, 2024
31 checks passed
@RobertCraigie
Copy link
Owner

Thanks so much for all your contributions Adeel!

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