🐚 An async & dynamic ORM for Rust
APACHE-2.0 License
Bot releases are hidden (Show)
sea-query-binder
to 0.6.0-rc.4
https://github.com/SeaQL/sea-orm/pull/2267
time
to 0.3.36
https://github.com/SeaQL/sea-orm/pull/2267
Published by billy1624 4 months ago
QuerySelect::tbl_col_as
Insert::on_conflict_do_nothing
https://github.com/SeaQL/sea-orm/pull/2244
has_one
relation for foreign key of unique index / constraint https://github.com/SeaQL/sea-orm/pull/2254
Published by tyt2y3 5 months ago
PrimaryKeyArity
with ARITY
constant https://github.com/SeaQL/sea-orm/pull/2185
fn get_arity_of<E: EntityTrait>() -> usize {
E::PrimaryKey::iter().count() // before; runtime
<<E::PrimaryKey as PrimaryKeyTrait>::ValueType as PrimaryKeyArity>::ARITY // now; compile-time
}
ActiveModel
to EntityTrait
https://github.com/SeaQL/sea-orm/pull/2186
rename_all
attribute to DeriveEntityModel
& DeriveActiveEnum
https://github.com/SeaQL/sea-orm/pull/2170
#[derive(DeriveEntityModel)]
#[sea_orm(table_name = "user", rename_all = "camelCase")]
pub struct Model {
#[sea_orm(primary_key)]
id: i32,
first_name: String, // firstName
#[sea_orm(column_name = "lAsTnAmE")]
last_name: String, // lAsTnAmE
}
#[derive(EnumIter, DeriveActiveEnum)]
#[sea_orm(rs_type = "String", db_type = "String(StringLen::None)", rename_all = "camelCase")]
pub enum TestEnum {
DefaultVariant, // defaultVariant
#[sea_orm(rename = "kebab-case")]
VariantKebabCase, // variant-kebab-case
#[sea_orm(rename = "snake_case")]
VariantSnakeCase, // variant_snake_case
#[sea_orm(string_value = "CuStOmStRiNgVaLuE")]
CustomStringValue, // CuStOmStRiNgVaLuE
}
ActiveValue::set_if_not_equals()
https://github.com/SeaQL/sea-orm/pull/2194
ActiveValue::try_as_ref()
https://github.com/SeaQL/sea-orm/pull/2197
QuerySelect::order_by_with_nulls
https://github.com/SeaQL/sea-orm/pull/2228
get_xxx_connection_pool
by default https://github.com/SeaQL/sea-orm/pull/2233
Published by billy1624 6 months ago
QueryResult::column_names
https://github.com/SeaQL/sea-orm/pull/2148
@generated
in generated code https://github.com/SeaQL/sea-orm/pull/2199
sea-query
to 0.31.0-rc.6
sea-schema
to 0.15.0-rc.6
Published by billy1624 7 months ago
DeriveActiveModel
macro https://github.com/SeaQL/sea-orm/pull/1665
Published by tyt2y3 7 months ago
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(" ")
);
Published by tyt2y3 7 months ago
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
Published by billy1624 9 months ago
sea-query
to 0.31
Published by tyt2y3 9 months ago
sqlite-use-returning-for-3_35
to use SQLite's returning https://github.com/SeaQL/sea-orm/pull/2070
Published by tyt2y3 9 months ago
ConnectOptions::test_before_acquire
Published by tyt2y3 9 months ago
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
Published by tyt2y3 10 months ago
#[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
Published by tyt2y3 11 months ago
sea-query
to 0.30.4
https://github.com/SeaQL/sea-query/releases/tag/0.30.4
Published by tyt2y3 11 months ago
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
Published by tyt2y3 11 months ago
expr_as_
that accepts self
sea-query
to 0.30.3
https://github.com/SeaQL/sea-query/releases/tag/0.30.3
Published by tyt2y3 11 months ago
#[sea_orm(skip)]
for FromQueryResult
derive macro https://github.com/SeaQL/sea-orm/pull/1954
Published by tyt2y3 11 months ago
--enum-extra-derives
https://github.com/SeaQL/sea-orm/pull/1934
--enum-extra-attributes
https://github.com/SeaQL/sea-orm/pull/1952
Full Changelog: https://github.com/SeaQL/sea-orm/compare/0.12.4...0.12.5
Published by tyt2y3 about 1 year ago
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,
}
ValueTuple
as hash key https://github.com/SeaQL/sea-orm/pull/1868
sea-query
to 0.30.2
https://github.com/SeaQL/sea-query/releases/tag/0.30.2
Published by tyt2y3 about 1 year ago
cursor_by
to SelectTwo
https://github.com/SeaQL/sea-orm/pull/1826
DeriveValueType
by qualifying QueryResult
https://github.com/SeaQL/sea-orm/pull/1855
Loader
panic on empty inputssalvo
to 0.50
chrono
to 0.4.30
https://github.com/SeaQL/sea-orm/pull/1858
sea-query
to 0.30.1
sea-schema
to 0.14.1
find_xxx_related/linked
https://github.com/SeaQL/sea-orm/pull/1811
Published by tyt2y3 about 1 year ago
FromQueryResult
impl of JsonValue
https://github.com/SeaQL/sea-orm/pull/1598
find_with_related
consolidation logic https://github.com/SeaQL/sea-orm/issues/1800