-
Notifications
You must be signed in to change notification settings - Fork 268
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
Arrays not automatically supported? #528
Comments
Our arrays are modeled as recursive types so it should work unless ltree arrays are modeled with its own type, which may be the case here. Then you will need to teach Postgrex how to encode and decode it accordingly via custom extensions. |
As far as I can tell, I'm not familiar with Postgrex's internals, so |
The text representation is not necessarily the same as the binary representation, so the text representation cannot be used as reference. The first question you need to answer is how an array of lquery is encoded in the binary protocol and perhaps the best way to do this is to start your own extension based on lquery itself and inspect the data. Or find the PostgreSQL reference for this data type. |
I'll work with the author of EctoLtree on this, thanks! |
I'm using
EctoLtree
for a project, and when I try to query using anlquery
array, I getEctoLtree
's extension for Postgrex defineslquery
, but not the array type_lquery
.There doesn't appear to be any documentation about type extensions supporting arrays beyond:
Does
EctoLtree
need to be extended to supportlquery
arrays, or is there a simpler fix? If it needs to be extended, is there an example in the ecosystem I could model the extension off of?I'm using PostgreSQL 13, Erlang/OTP 23, Elixir 1.11.2, Postgrex 0.15.3.
The text was updated successfully, but these errors were encountered: