🐚 An async & dynamic ORM for Rust
DeriveActiveModel
macro https://github.com/SeaQL/sea-orm/pull/1665
DerivePartialModel
macro attribute entity
now supports syn::Type
https://github.com/SeaQL/sea-orm/pull/2137
#[derive(DerivePartialModel)]
#[sea_orm(entity = "<entity::Model as ModelTrait>::Entity")]
struct EntityNameNotAIdent {
#[sea_orm(from_col = "foo2")]
_foo: i32,
#[sea_orm(from_col = "bar2")]
_bar: String,
}
RelationDef::from_alias()
https://github.com/SeaQL/sea-orm/pull/2146
assert_eq!(
cake::Entity::find()
.join_as(
JoinType::LeftJoin,
cake_filling::Relation::Cake.def().rev(),
cf.clone()
)
.join(
JoinType::LeftJoin,
cake_filling::Relation::Filling.def().from_alias(cf)
)
.build(DbBackend::MySql)
.to_string(),
[
"SELECT `cake`.`id`, `cake`.`name` FROM `cake`",
"LEFT JOIN `cake_filling` AS `cf` ON `cake`.`id` = `cf`.`cake_id`",
"LEFT JOIN `filling` ON `cf`.`filling_id` = `filling`.`id`",
]
.join(" ")
);
ConnectOptions::pool_options()
to ConnectOptions::sqlx_pool_options()
https://github.com/SeaQL/sea-orm/pull/2145
sqlx_common
private, hiding sqlx_error_to_xxx_err
https://github.com/SeaQL/sea-orm/pull/2145
migrate generate
on empty mod.rs
files https://github.com/SeaQL/sea-orm/pull/2064
DerivePartialModel
macro attribute entity
now supports syn::Type
https://github.com/SeaQL/sea-orm/pull/2137
#[derive(DerivePartialModel)]
#[sea_orm(entity = "<entity::Model as ModelTrait>::Entity")]
struct EntityNameNotAIdent {
#[sea_orm(from_col = "foo2")]
_foo: i32,
#[sea_orm(from_col = "bar2")]
_bar: String,
}
RelationDef::from_alias()
https://github.com/SeaQL/sea-orm/pull/2146
assert_eq!(
cake::Entity::find()
.join_as(
JoinType::LeftJoin,
cake_filling::Relation::Cake.def().rev(),
cf.clone()
)
.join(
JoinType::LeftJoin,
cake_filling::Relation::Filling.def().from_alias(cf)
)
.build(DbBackend::MySql)
.to_string(),
[
"SELECT `cake`.`id`, `cake`.`name` FROM `cake`",
"LEFT JOIN `cake_filling` AS `cf` ON `cake`.`id` = `cf`.`cake_id`",
"LEFT JOIN `filling` ON `cf`.`filling_id` = `filling`.`id`",
]
.join(" ")
);
sea-schema
to 0.15.0-rc.3
rocket_okapi
example https://github.com/SeaQL/sea-orm/pull/2136
sea-query
to 0.31
sqlite-use-returning-for-3_35
to use SQLite's returning https://github.com/SeaQL/sea-orm/pull/2070
ConnectOptions::test_before_acquire
desc
to Cursor
paginator https://github.com/SeaQL/sea-orm/pull/2037
Paginator
's COUNT
query https://github.com/SeaQL/sea-orm/pull/2030
ConnectOptions
https://github.com/SeaQL/sea-orm/pull/2055
QuerySelect::lock_with_behavior
https://github.com/SeaQL/sea-orm/pull/1867
DeriveValueType
macro https://github.com/SeaQL/sea-orm/pull/2054
#[sea_orm(comment = "action")]
); create_table_from_entity
supports comment https://github.com/SeaQL/sea-orm/pull/2009
proxy
) to database backend https://github.com/SeaQL/sea-orm/pull/1881, https://github.com/SeaQL/sea-orm/pull/2000
is_in
and is_not_in
https://github.com/SeaQL/sea-orm/pull/2002
sea-query
to 0.30.5
https://github.com/SeaQL/sea-query/releases/tag/0.30.5
sea-query
to 0.30.4
https://github.com/SeaQL/sea-query/releases/tag/0.30.4
StatementBuilder
for sea_query::WithQuery
https://github.com/SeaQL/sea-orm/issues/1960
axum
example to 0.7
https://github.com/SeaQL/sea-orm/pull/1984