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 Support For Postgres Full Text Search tsvector Data Type #2727

Open
wants to merge 18 commits into
base: main
Choose a base branch
from

Conversation

anshap1719
Copy link

@anshap1719 anshap1719 commented Sep 1, 2023

Closes #2705

Relates to #729

@anshap1719 anshap1719 marked this pull request as ready for review September 4, 2023 12:33
@anshap1719 anshap1719 changed the title Add Support For Postgres Full Text Search Add Support For Postgres Full Text Search Data Types Sep 4, 2023
Copy link
Collaborator

@abonander abonander left a comment

Choose a reason for hiding this comment

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

Since it appears that supporting full text search does not require enabling any optional dependencies, it doesn't need a feature flag. It's perfectly fine for it to be unconditionally compiled, like with the support for ltree and lquery.

sqlx-core/Cargo.toml Outdated Show resolved Hide resolved
@anshap1719
Copy link
Author

Hi @abonander, please approve the workflow run, it should now be fixed.

@anshap1719
Copy link
Author

Hi @abonander, Did you get a chance to look at this again yet?

@abonander
Copy link
Collaborator

I review PRs as I get to them. SQLx is only a small part of my full-time job. Pinging me just fills up my notifications, it won't get your PR reviewed any faster.

@anshap1719
Copy link
Author

@abonander I understand. Apologies for bothering you with those.

@abonander
Copy link
Collaborator

@anshap1719 can you please rebase and fix conflicts one last time? We're ready to merge this.

Note that the type mappings for the macros have moved to their corresponding database drivers:

impl_type_checking!(

@anshap1719
Copy link
Author

Thanks @abonander, I have updated this PR.

@abonander
Copy link
Collaborator

Looks like cargo fmt needs to be run.

@anshap1719
Copy link
Author

@abonander Right, my bad. Done now.

sqlx-postgres/src/types/ts_vector.rs Show resolved Hide resolved
sqlx-postgres/src/types/ts_vector.rs Outdated Show resolved Hide resolved
sqlx-postgres/src/types/ts_vector.rs Outdated Show resolved Hide resolved
sqlx-postgres/src/types/ts_vector.rs Outdated Show resolved Hide resolved
@anshap1719
Copy link
Author

@wyhaya Thanks for the review. Will make the changes over the weekend and will also use all the cases you described as test cases.

@anshap1719
Copy link
Author

@wyhaya Updated everything. Thanks for the code as well.

@anshap1719 anshap1719 requested a review from wyhaya April 8, 2024 12:54
sqlx-postgres/src/types/ts_vector.rs Outdated Show resolved Hide resolved
sqlx-postgres/src/types/ts_query.rs Outdated Show resolved Hide resolved
@anshap1719
Copy link
Author

Hi @abonander Just FYI, this PR no longer covers tsquery. I removed it since I realized it's not ready and needs a lot of work, and the tsvector is already done and we want to avoid blocking that.

@anshap1719 anshap1719 requested a review from wyhaya April 21, 2024 08:50
@anshap1719 anshap1719 changed the title Add Support For Postgres Full Text Search Data Types Add Support For Postgres Full Text Search tsvector Data Type Apr 21, 2024
@KirDontsov
Copy link

Oh, guys sorry, but I really need tsvector support, can you check and merge it? @abonander

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.

Postgres TSVector Support
4 participants