New Features
- Add support for root JSON arrays #1898
Now the following works (requires thejson-array/postgres-arrayfeature)!
#[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<JsonColumn>,
}
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, FromJsonQueryResult)]
pub struct JsonColumn {
pub value: String,
}Enhancements
- Loader: use
ValueTupleas hash key #1868
Upgrades
- Updated
sea-queryto0.30.2https://github.com/SeaQL/sea-query/releases/tag/0.30.2