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

Support ARRAY fields #75

Open
thelinuxlich opened this issue Aug 17, 2023 · 5 comments
Open

Support ARRAY fields #75

thelinuxlich opened this issue Aug 17, 2023 · 5 comments

Comments

@thelinuxlich
Copy link

I think the current implementation doesn't support yet passing lists as parameters so we can use PostgreSQL Arrays

@tsloughter
Copy link
Collaborator

Arrays should work, but I now see we have fewer tests for them than I thought https://github.com/erleans/pgo/blob/main/test/pgo_basic_SUITE.erl#L402

How are you trying to use them? Wondering if its a casting issue.

@thelinuxlich
Copy link
Author

I'm using it with gleam_pgo, which needs something like a pgo.array so I can pass array parameters when inserting into array fields

@lpil
Copy link
Contributor

lpil commented Aug 18, 2023

Is it that it doesn't work if you give PGO a list, or is it that a list function needs to be added to gleam_pgo? If the latter that can be easily done 👍

@thelinuxlich
Copy link
Author

Gleam_pgo doen't have a pgo.list() and I don't know if it exists on PGO

@lpil
Copy link
Contributor

lpil commented Aug 19, 2023

PGO doesn't have argument functions as it is dynamically typed, one can pass in any value as an argument. If it's just the Gleam function and PGO supports arrays we can move this issue to the Gleam project or just add that function.

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

No branches or pull requests

3 participants