From 01cbf1cc36fa427bc0cb19e86755906bc4c2ae94 Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 16 Oct 2023 10:24:48 +0100 Subject: [PATCH] Changelog --- CHANGELOG.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64d17da8..89b78dda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,26 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## 0.12.4 - Pending +### New Features + +* Add support for root JSON arrays https://github.com/SeaQL/sea-orm/pull/1898 + Now the following works! +```rust +#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] +#[sea_orm(table_name = "json_struct_vec")] +pub struct Model { + #[sea_orm(primary_key)] + pub id: i32, + #[sea_orm(column_type = "Json")] + pub struct_vec: Vec, +} + +#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, FromJsonQueryResult)] +pub struct JsonColumn { + pub value: String, +} +``` + ### Enhancements * Loader: use `ValueTuple` as hash key https://github.com/SeaQL/sea-orm/pull/1868