-
-
Notifications
You must be signed in to change notification settings - Fork 521
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
Be able to support Array in database #576
Comments
Hey @hf29h8sh321, I assumed you mean supporting Array of some permitives for PostgreSQL? |
@billy1624 For example, |
Okay, this has been discussed before |
This depends on SeaQL/sea-query#225 |
Could we have an example of the workaround using Json type for the moment ? I need to store and array of enum and i can't find any example on array storage as json. |
Hey @EtienneProthon, please check #783 |
This is the only thing that prevents me from using sea-orm right now, because I need to work with the postgres array. I can't change the array to JSON in my tables. Is there a workaround to use an array without JSON? I'm interested in an int8 array. |
and array support was merged in sea-query: SeaQL/sea-query#467 :) |
@kudlatyamroth and released) |
@ikrivosheev in release 0.27 info there is no mention about it :) |
@kudlatyamroth thank! I will edit Changelog! |
Exciting! What is needed for sea-orm to support it now that sea-query has it? |
Hey everyone, please check #1132 |
Summary
Be able to directly support Array in database
Such as
text[]
Additional Information
Right now it is represented by a custom
column_type = "Custom(\"array\".to_owned())"
and the type in struct isString
, notVec<T>
The text was updated successfully, but these errors were encountered: