Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add ltree, lquery and ltxtquery support#875

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sfackler merged 4 commits intorust-postgres:masterfromhalfmatthalfcat:ltree-support
Mar 23, 2022

Conversation

halfmatthalfcat
Copy link
Contributor

This addsPostgres ltree, lquery and ltxtquery support to rust-postgres. For the uninitiated, ltree ("label tree") is a Postgres datatype that follows a dot-notated search path for a given row. Lquery and ltxtquery allow users to search for rows that match an ltree. There are many query operators to help traverse the tree in a given query.

There is some commentary in#389 on why weare not addingInners for the three datatypes. In summary, becauseltree is an extension (one that ships with Postgres), it's Oids are not static like many other datatypes. This renders theInner loading by Oid unusable and thus we must match on theType name, like we do forcitext.

Long term motivations for this are to incorporate these changes into quaint and then eventually into Prisma.

Fixes#389

@halfmatthalfcat
Copy link
ContributorAuthor

@sfackler appreciate a review if you have time, open to any changes.

@halfmatthalfcat
Copy link
ContributorAuthor

@sfackler I think everything should be sorted. Added more tests around the protocol parsers. Let me know if you see anything else glaring. Thanks!

@brassel
Copy link

Looking forward to see this!
Thank you@halfmatthalfcat and@sfackler!

@halfmatthalfcat
Copy link
ContributorAuthor

Hey@sfackler I think since I haven't contributed before I need some assistance kicking off another build. Thanks for your help!

@halfmatthalfcat
Copy link
ContributorAuthor

Ok@sfackler, sorry about that delay. I didn't know about thematches! macro and addedltree as an extension in the sql setup file, was running into a race condition during the tests.

Confirmed the latest build is working on my fork:https://github.com/halfmatthalfcat/rust-postgres/actions/runs/1996247393

I rebased as well so weshould be ready to go on this.

@halfmatthalfcat
Copy link
ContributorAuthor

Hey@sfackler can we kick the tires on this one more time?

@sfackler
Copy link
Collaborator

Kicked - sorry for the delay. I really with github would auto-build once you've been approved a single time or something... :(

halfmatthalfcat reacted with thumbs up emoji

@sfacklersfackler merged commit38da7fa intorust-postgres:masterMar 23, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@sfacklersfacklerAwaiting requested review from sfackler

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Support theltree data type

3 participants

@halfmatthalfcat@brassel@sfackler

[8]ページ先頭

©2009-2025 Movatter.jp