-
Notifications
You must be signed in to change notification settings - Fork 62
feat(postgres): ltree support #352
base: main
Are you sure you want to change the base?
feat(postgres): ltree support #352
Conversation
@pimeys @garrensmith @tomhoule @janpio Looks like this was slated for 3.12.0 but that release was closed yesterday. Is there a plan to review this and get it merged? I've got the |
Our "milestones" are more loose buckets where we put things we want to look at in a sprint, and seems @pimeys did not find the time to finally do that last sprint - so I moved it to the next one (and also put on an internal board to give it more visibility) (Side note: We are pushing to get GiST and GIN indexes added to our |
Excellent! Sounds great, thank you for the context. Excited to see this all land <3 |
Ping |
We do have extensions in preview now: https://www.prisma.io/docs/concepts/components/prisma-schema/postgresql-extensions What would really help here is a writeup that considers the ltree support from the point of view of the Prisma schema language. It's probably going to be The implementation here could come in phases. First just query raw, then more. |
A good chunk of those questions are answered here: prisma/prisma#12306 (reply in thread) The results are returned as strings (that's how Postgres more or less treats them as well). |
Just to clarify, this PR enables support for
So the work is already done, its just rebasing this PR and getting my prisma-engines PR rebased/updated a bit. Would it maybe be easier if we all jump on a call at some point and discuss a unified path forward? I feel like some things are getting lost through the various issues, PRs and discussions. |
@pimeys I could do this write up too if it would be ultimately helpful. Is there another similar writeup I could use as a base of reference? |
This PR enables Postgres
ltree
support in quaint.ltree
is a Postgres column datatype that allows n-depth traversable trees to be used in filtering/querying rows.ltree
is a native extension that ships with Postgres (binary support 13+) but must be enabled manually by the user.Reference material:
rust-postgres
PR to enable supportprisma/prisma
on includingltree
ltree
docsltree