Skip to content

0.12.4

Compare
Choose a tag to compare
@tyt2y3 tyt2y3 released this 19 Oct 20:03
· 233 commits to master since this release

New Features

  • Add support for root JSON arrays #1898
    Now the following works (requires the json-array / postgres-array feature)!
#[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 ValueTuple as hash key #1868

Upgrades