-
-
Notifications
You must be signed in to change notification settings - Fork 547
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 datatype in PostgreSQL #1132
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two conversion look ugly. But I cannot convert it with Into<T>
. Because the ColumnType
is behind a Rc
/ Arc
so I cannot take ownership of the ColumnType
, that blocking me from using Into<T>
.
Maybe there is another way around it. Any suggestion?
Hey @tyt2y3, ready for review. Do you think we need to support entity generation of PostgreSQL's array datatypes? |
We can merge this first. I'll create other PRs for the CLI support :) |
Okay, I managed to refactor it @tyt2y3 |
@tyt2y3 hello! Where do you find the sea-schema package with version: 0.10.1?) |
I just released it on cargo and went to dinner ) |
* What's new in SeaORM 0.10.1 * Edit * Error handling (SeaQL/sea-orm#1002) * Support array datatype for Postgres (SeaQL/sea-orm#1132) * generate index file as `lib.rs` instead of `mod.rs` (SeaQL/sea-orm#953) * Running migration on any Postgres schema (SeaQL/sea-orm#1056) * More connection options (SeaQL/sea-orm#897, SeaQL/sea-orm#1056) * Implements `TryFrom<ActiveModel>` for `Model` (SeaQL/sea-orm#990) * Delete 2022-10-28-whats-new-in-0.10.1.md Co-authored-by: Chris Tsang <[email protected]>
PR Info
Adds
postgres-array
featureColumnType::Array
variantsea_query::ColumnType::Array
andsea_orm::ColumnType::Array
Vec<T>
to be used as model fields in PostgreSQL