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 arrays in PostgresSQL dialect #32

Open
ivanyu opened this issue May 14, 2020 · 4 comments
Open

Support arrays in PostgresSQL dialect #32

ivanyu opened this issue May 14, 2020 · 4 comments

Comments

@ivanyu
Copy link
Contributor

ivanyu commented May 14, 2020

Currently, PostgreSQL dialect have no support for arrays. This will be a useful feature to have.

@ttrading
Copy link

ttrading commented Apr 1, 2021

Does this mean we cannot submit an array of JSON so we need to keep sending individual JSON with schema attached?

@willyborankin
Copy link
Contributor

No you can store you data as JSON. This issue is about ARRAY type in PgSQL (https://www.postgresql.org/docs/11/arrays.html)

@ttrading
Copy link

ttrading commented Apr 5, 2021

what should my schema look like then if i want to insert an array in this form:

[
{
"text": "Hello1",
"sent_at": 1560507792000.001
},
{
"text": "Hello2",
"sent_at": 1560507794000.001
}
]

@willyborankin
Copy link
Contributor

Please see my answer in issue #86

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