github SeaQL/sea-orm 2.0.0-rc.32

9 hours ago
  • permit passing custom derives to Model or ModelEx (#2933)
#[sea_orm::model]
#[derive(TS, ...)]
// Apply attributes specifically to the generated Model struct
#[sea_orm(model_attrs(ts(rename = "Fruit")))]
// Apply attributes specifically to the generated ModelEx struct
#[sea_orm(model_ex_attrs(ts(rename = "FruitEx")))]
struct Model {
    // ...
}

The code above expands to:

// ...
#[derive(TS, ...)]
#[ts(rename = "Fruit")]
struct Model {
    // ...
}

// ...
#[derive(TS, ...)]
#[ts(rename = "FruitEx")]
struct ModelEx {
    // ...
}
  • Add typed column for TextUuid (#2717)
  • Fix proxy compile error (#2935)
  • Use i64 for COUNT(*) result on MySQL and SQLite (#2944)
  • MigratorTrait with self (#2806)

Don't miss a new sea-orm release

NewReleases is sending notifications on new releases.