From bd9a0e9b7e8f55d4ed91511f4b088849b94d3087 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 16 Oct 2023 11:26:13 +0100 Subject: [PATCH] New `json-array` feature flag --- CHANGELOG.md | 2 +- Cargo.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 89b78dda4..b4b2c1548 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### New Features * 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 #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "json_struct_vec")] diff --git a/Cargo.toml b/Cargo.toml index ed33aea24..877fef5b2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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-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"] +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 = [] sqlx-dep = [] sqlx-all = ["sqlx-mysql", "sqlx-postgres", "sqlx-sqlite"]