Skip to content

Commit 24dc19f

Browse files
committed
Tweaks
1 parent 4f89d1b commit 24dc19f

5 files changed

Lines changed: 11 additions & 6 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,8 @@ SeaORM 2.0 is shaping up to be our most significant release yet - with a few bre
456456
+ [A walk-through of SeaORM 2.0](https://www.sea-ql.org/blog/2025-12-05-sea-orm-2.0/)
457457
+ [How we made SeaORM synchronous](https://www.sea-ql.org/blog/2025-12-12-sea-orm-2.0/)
458458
+ [SeaORM 2.0 Migration Guide](https://www.sea-ql.org/blog/2026-01-12-sea-orm-2.0/)
459+
+ [SeaORM now supports Arrow & Parquet](https://www.sea-ql.org/blog/2026-02-22-sea-orm-arrow/)
460+
+ [SeaORM 2.0 with SQL Server Support](https://www.sea-ql.org/blog/2026-02-25-sea-orm-x/)
459461

460462
If you make extensive use of SeaQuery, we recommend checking out our blog post on SeaQuery 1.0 release:
461463

changelog/2.0.0-rc.35.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ Nested transactions correctly fall back to `SAVEPOINT` regardless of the mode.
2121

2222
**Extend `DeriveIntoActiveModel`** (#2961)
2323

24-
`DeriveIntoActiveModel` now supports `set`/`fill`, `default`, `ignore`, `skip`, `exhaustive`, and custom `active_model` path attributes for fine-grained control when converting "form" or "input" structs into ActiveModels.
24+
`DeriveIntoActiveModel` now supports `set`, `default`, `ignore`, `skip`, `exhaustive`, and custom `active_model` path attributes for fine-grained control when converting "form" or "input" structs into ActiveModels.
2525

26-
**`set` / `fill`** — always set fields not present on the struct:
26+
**`set`** — always set fields not present on the struct:
2727

2828
```rust
2929
#[derive(DeriveIntoActiveModel)]
30-
#[sea_orm(active_model = "fruit::ActiveModel", fill(cake_id = "None"))]
30+
#[sea_orm(active_model = "fruit::ActiveModel", set(cake_id = "None"))]
3131
struct NewFruit {
3232
name: String,
3333
// cake_id is not on the struct, but will always be Set(None)

sea-orm-macros/src/derives/into_active_model.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ impl DeriveIntoActiveModel {
4646
/// Container attributes (#[sea_orm(...)]) on the struct for:
4747
/// - active_model: explicit ActiveModel type
4848
/// - exhaustive: require all fields to be set
49-
/// - set/fill(...): provided values for ommited fields
49+
/// - set(...): provided values for ommited fields
5050
///
5151
/// Field attributes (#[sea_orm(...)]) with:
5252
/// - ignore/skip: exclude from conversion
@@ -85,10 +85,10 @@ impl DeriveIntoActiveModel {
8585
if meta.exists("exhaustive") {
8686
exhaustive = true;
8787
}
88-
// Parse set/fill attribute: #[sea_orm(set(field1 = expr1, field2 = expr2, ...))]
88+
// Parse set attribute: #[sea_orm(set(field1 = expr1, field2 = expr2, ...))]
8989
// Collects field assignments to be included in the generated ActiveModel
9090
if let Meta::List(meta_list) = &meta {
91-
if meta_list.path.is_ident("set") || meta_list.path.is_ident("fill") {
91+
if meta_list.path.is_ident("set") {
9292
let nested = meta_list
9393
.parse_args_with(Punctuated::<Meta, Comma>::parse_terminated)
9494
.map_err(Error::Syn)?;

sea-orm-sync/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ SeaORM 2.0 is shaping up to be our most significant release yet - with a few bre
455455
+ [SeaORM 2.0: Nested ActiveModel](https://www.sea-ql.org/blog/2025-11-25-sea-orm-2.0/)
456456
+ [A walk-through of SeaORM 2.0](https://www.sea-ql.org/blog/2025-12-05-sea-orm-2.0/)
457457
+ [How we made SeaORM synchronous](https://www.sea-ql.org/blog/2025-12-12-sea-orm-2.0/)
458+
+ [SeaORM 2.0 Migration Guide](https://www.sea-ql.org/blog/2026-01-12-sea-orm-2.0/)
458459

459460
If you make extensive use of SeaQuery, we recommend checking out our blog post on SeaQuery 1.0 release:
460461

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,8 @@
600600
//! + [A walk-through of SeaORM 2.0](https://www.sea-ql.org/blog/2025-12-05-sea-orm-2.0/)
601601
//! + [How we made SeaORM synchronous](https://www.sea-ql.org/blog/2025-12-12-sea-orm-2.0/)
602602
//! + [SeaORM 2.0 Migration Guide](https://www.sea-ql.org/blog/2026-01-12-sea-orm-2.0/)
603+
//! + [SeaORM now supports Arrow & Parquet](https://www.sea-ql.org/blog/2026-02-22-sea-orm-arrow/)
604+
//! + [SeaORM 2.0 with SQL Server Support](https://www.sea-ql.org/blog/2026-02-25-sea-orm-x/)
603605
//!
604606
//! If you make extensive use of SeaQuery, we recommend checking out our blog post on SeaQuery 1.0 release:
605607
//!

0 commit comments

Comments
 (0)