New json-array feature flag

This commit is contained in:
chris 2023-10-16 11:26:13 +01:00
parent 01cbf1cc36
commit bd9a0e9b7e
2 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### New Features ### New Features
* Add support for root JSON arrays https://github.com/SeaQL/sea-orm/pull/1898 * Add support for root JSON arrays https://github.com/SeaQL/sea-orm/pull/1898
Now the following works! Now the following works (requires the `json-array` / `postgres-array` feature)!
```rust ```rust
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "json_struct_vec")] #[sea_orm(table_name = "json_struct_vec")]

View File

@ -83,6 +83,7 @@ with-bigdecimal = ["bigdecimal", "sea-query/with-bigdecimal", "sea-query-binder?
with-uuid = ["uuid", "sea-query/with-uuid", "sea-query-binder?/with-uuid", "sqlx?/uuid"] with-uuid = ["uuid", "sea-query/with-uuid", "sea-query-binder?/with-uuid", "sqlx?/uuid"]
with-time = ["time", "sea-query/with-time", "sea-query-binder?/with-time", "sqlx?/time"] with-time = ["time", "sea-query/with-time", "sea-query-binder?/with-time", "sqlx?/time"]
postgres-array = ["sea-query/postgres-array", "sea-query-binder?/postgres-array", "sea-orm-macros/postgres-array"] postgres-array = ["sea-query/postgres-array", "sea-query-binder?/postgres-array", "sea-orm-macros/postgres-array"]
json-array = ["postgres-array"] # this does not actually enable sqlx-postgres, but only a few traits to support array in sea-query
sea-orm-internal = [] sea-orm-internal = []
sqlx-dep = [] sqlx-dep = []
sqlx-all = ["sqlx-mysql", "sqlx-postgres", "sqlx-sqlite"] sqlx-all = ["sqlx-mysql", "sqlx-postgres", "sqlx-sqlite"]