github SeaQL/sea-orm 0.12.4

latest releases: 1.1.1, 1.1.0, 1.1.0-rc.3...
13 months ago

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

Don't miss a new sea-orm release

NewReleases is sending notifications on new releases.