Skip to content

Commit 0677ee5

Browse files
committed
Readme
1 parent 5614b22 commit 0677ee5

4 files changed

Lines changed: 21 additions & 30 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -493,15 +493,15 @@ Here is a short list of awesome open source software built with SeaORM. Feel fre
493493
| Project | GitHub | Tagline |
494494
|---------|--------|---------|
495495
| [Zed](https://github.com/zed-industries/zed) | ![GitHub stars](https://img.shields.io/github/stars/zed-industries/zed.svg?style=social) | A high-performance, multiplayer code editor |
496+
| [Servo](https://github.com/servo/servo) | ![GitHub stars](https://img.shields.io/github/stars/servo/servo.svg?style=social) | The Servo Parallel Browser Engine Project |
496497
| [OpenObserve](https://github.com/openobserve/openobserve) | ![GitHub stars](https://img.shields.io/github/stars/openobserve/openobserve.svg?style=social) | Open-source observability platform |
497498
| [RisingWave](https://github.com/risingwavelabs/risingwave) | ![GitHub stars](https://img.shields.io/github/stars/risingwavelabs/risingwave.svg?style=social) | Stream processing and management platform |
498-
| [LLDAP](https://github.com/nitnelave/lldap) | ![GitHub stars](https://img.shields.io/github/stars/nitnelave/lldap.svg?style=social) | A light LDAP server for user management |
499499
| [Warpgate](https://github.com/warp-tech/warpgate) | ![GitHub stars](https://img.shields.io/github/stars/warp-tech/warpgate.svg?style=social) | Smart SSH bastion that works with any SSH client |
500+
| [LLDAP](https://github.com/nitnelave/lldap) | ![GitHub stars](https://img.shields.io/github/stars/nitnelave/lldap.svg?style=social) | A light LDAP server for user management |
500501
| [Svix](https://github.com/svix/svix-webhooks) | ![GitHub stars](https://img.shields.io/github/stars/svix/svix-webhooks.svg?style=social) | The enterprise ready webhooks service |
501502
| [Ryot](https://github.com/IgnisDa/ryot) | ![GitHub stars](https://img.shields.io/github/stars/ignisda/ryot.svg?style=social) | The only self hosted tracker you will ever need |
502-
| [Lapdev](https://github.com/lapce/lapdev) | ![GitHub stars](https://img.shields.io/github/stars/lapce/lapdev.svg?style=social) | Self-hosted remote development enviroment |
503-
| [System Initiative](https://github.com/systeminit/si) | ![GitHub stars](https://img.shields.io/github/stars/systeminit/si.svg?style=social) | DevOps Automation Platform |
504503
| [OctoBase](https://github.com/toeverything/OctoBase) | ![GitHub stars](https://img.shields.io/github/stars/toeverything/OctoBase.svg?style=social) | A light-weight, scalable, offline collaborative data backend |
504+
| [System Initiative](https://github.com/systeminit/si) | ![GitHub stars](https://img.shields.io/github/stars/systeminit/si.svg?style=social) | DevOps Automation Platform |
505505

506506
## Sponsorship
507507

sea-orm-sync/README.md

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ let smart_user = user::Entity::load()
110110
.filter_by_id(42) // shorthand for .filter(user::COLUMN.id.eq(42))
111111
.with(profile::Entity) // 1-1 uses join
112112
.with((post::Entity, tag::Entity)) // 1-N uses data loader
113-
.one(db)
114-
?
113+
.one(db)?
115114
.unwrap();
116115

117116
// 3 queries are executed under the hood:
@@ -155,8 +154,7 @@ let user = user::ActiveModel::builder()
155154
.set_title("Nice weather")
156155
.add_tag(tag::ActiveModel::builder().set_tag("sunny")),
157156
)
158-
.save(db)
159-
?;
157+
.save(db)?;
160158
```
161159

162160
## Schema first or Entity first? Your choice
@@ -190,8 +188,7 @@ let user: Option<user::Model> = user::Entity::find()
190188
AND "id" in ({..ids})
191189
"#
192190
))
193-
.one(db)
194-
?;
191+
.one(db)?;
195192
```
196193

197194
## Synchronous Support
@@ -212,8 +209,7 @@ let cakes: Vec<cake::Model> = Cake::find().all(db)?;
212209
// find and filter
213210
let chocolate: Vec<cake::Model> = Cake::find()
214211
.filter(Cake::COLUMN.name.contains("chocolate"))
215-
.all(db)
216-
?;
212+
.all(db)?;
217213

218214
// find one model
219215
let cheese: Option<cake::Model> = Cake::find_by_id(1).one(db)?;
@@ -251,8 +247,7 @@ struct CakeWithFruit {
251247
let cakes: Vec<CakeWithFruit> = Cake::find()
252248
.left_join(fruit::Entity) // no need to specify join condition
253249
.into_partial_model() // only the columns in the partial model will be selected
254-
.all(db)
255-
?;
250+
.all(db)?;
256251
```
257252

258253
### Insert
@@ -287,9 +282,7 @@ result.last_insert_id == Some(2);
287282
You can take advantage of database specific features to perform upsert and idempotent insert.
288283
```rust
289284
// insert many with returning (if supported by database)
290-
let models: Vec<fruit::Model> = Fruit::insert_many([apple, pear])
291-
.exec_with_returning(db)
292-
?;
285+
let models: Vec<fruit::Model> = Fruit::insert_many([apple, pear]).exec_with_returning(db)?;
293286
models[0]
294287
== fruit::Model {
295288
id: 1, // database assigned value
@@ -300,8 +293,7 @@ models[0]
300293
// insert with ON CONFLICT on primary key do nothing, with MySQL specific polyfill
301294
let result = Fruit::insert_many([apple, pear])
302295
.on_conflict_do_nothing()
303-
.exec(db)
304-
?;
296+
.exec(db)?;
305297

306298
matches!(result, TryInsertResult::Conflicted);
307299
```
@@ -326,8 +318,7 @@ let pear: fruit::Model = pear.update(db)?;
326318
Fruit::update_many()
327319
.col_expr(fruit::COLUMN.cake_id, fruit::COLUMN.cake_id.add(2))
328320
.filter(fruit::COLUMN.name.contains("Apple"))
329-
.exec(db)
330-
?;
321+
.exec(db)?;
331322
```
332323
### Save
333324
You can perform "insert or update" operation with ActiveModel, making it easy to compose transactional operations.
@@ -365,8 +356,7 @@ fruit::Entity::delete(orange).exec(db)?;
365356
// delete many: DELETE FROM "fruit" WHERE "fruit"."name" LIKE '%Orange%'
366357
fruit::Entity::delete_many()
367358
.filter(fruit::COLUMN.name.contains("Orange"))
368-
.exec(db)
369-
?;
359+
.exec(db)?;
370360

371361
```
372362
### Raw SQL Query
@@ -398,8 +388,7 @@ let cake: Option<CakeWithBakery> = CakeWithBakery::find_by_statement(raw_sql!(
398388
LEFT JOIN "bakery" ON "cake"."bakery_id" = "bakery"."id"
399389
WHERE "cake"."id" IN ({..cake_ids})"#
400390
))
401-
.one(db)
402-
?;
391+
.one(db)?;
403392
```
404393

405394
## 🧭 Seaography: instant GraphQL API
@@ -456,6 +445,8 @@ SeaORM 2.0 is shaping up to be our most significant release yet - with a few bre
456445
+ [A walk-through of SeaORM 2.0](https://www.sea-ql.org/blog/2025-12-05-sea-orm-2.0/)
457446
+ [How we made SeaORM synchronous](https://www.sea-ql.org/blog/2025-12-12-sea-orm-2.0/)
458447
+ [SeaORM 2.0 Migration Guide](https://www.sea-ql.org/blog/2026-01-12-sea-orm-2.0/)
448+
+ [SeaORM now supports Arrow & Parquet](https://www.sea-ql.org/blog/2026-02-22-sea-orm-arrow/)
449+
+ [SeaORM 2.0 with SQL Server Support](https://www.sea-ql.org/blog/2026-02-25-sea-orm-x/)
459450

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

sea-orm-sync/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,15 +626,15 @@
626626
//! | Project | GitHub | Tagline |
627627
//! |---------|--------|---------|
628628
//! | [Zed](https://github.com/zed-industries/zed) | ![GitHub stars](https://img.shields.io/github/stars/zed-industries/zed.svg?style=social) | A high-performance, multiplayer code editor |
629+
//! | [Servo](https://github.com/servo/servo) | ![GitHub stars](https://img.shields.io/github/stars/servo/servo.svg?style=social) | The Servo Parallel Browser Engine Project |
629630
//! | [OpenObserve](https://github.com/openobserve/openobserve) | ![GitHub stars](https://img.shields.io/github/stars/openobserve/openobserve.svg?style=social) | Open-source observability platform |
630631
//! | [RisingWave](https://github.com/risingwavelabs/risingwave) | ![GitHub stars](https://img.shields.io/github/stars/risingwavelabs/risingwave.svg?style=social) | Stream processing and management platform |
631-
//! | [LLDAP](https://github.com/nitnelave/lldap) | ![GitHub stars](https://img.shields.io/github/stars/nitnelave/lldap.svg?style=social) | A light LDAP server for user management |
632632
//! | [Warpgate](https://github.com/warp-tech/warpgate) | ![GitHub stars](https://img.shields.io/github/stars/warp-tech/warpgate.svg?style=social) | Smart SSH bastion that works with any SSH client |
633+
//! | [LLDAP](https://github.com/nitnelave/lldap) | ![GitHub stars](https://img.shields.io/github/stars/nitnelave/lldap.svg?style=social) | A light LDAP server for user management |
633634
//! | [Svix](https://github.com/svix/svix-webhooks) | ![GitHub stars](https://img.shields.io/github/stars/svix/svix-webhooks.svg?style=social) | The enterprise ready webhooks service |
634635
//! | [Ryot](https://github.com/IgnisDa/ryot) | ![GitHub stars](https://img.shields.io/github/stars/ignisda/ryot.svg?style=social) | The only self hosted tracker you will ever need |
635-
//! | [Lapdev](https://github.com/lapce/lapdev) | ![GitHub stars](https://img.shields.io/github/stars/lapce/lapdev.svg?style=social) | Self-hosted remote development enviroment |
636-
//! | [System Initiative](https://github.com/systeminit/si) | ![GitHub stars](https://img.shields.io/github/stars/systeminit/si.svg?style=social) | DevOps Automation Platform |
637636
//! | [OctoBase](https://github.com/toeverything/OctoBase) | ![GitHub stars](https://img.shields.io/github/stars/toeverything/OctoBase.svg?style=social) | A light-weight, scalable, offline collaborative data backend |
637+
//! | [System Initiative](https://github.com/systeminit/si) | ![GitHub stars](https://img.shields.io/github/stars/systeminit/si.svg?style=social) | DevOps Automation Platform |
638638
//!
639639
//! ## Sponsorship
640640
//!

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,15 +637,15 @@
637637
//! | Project | GitHub | Tagline |
638638
//! |---------|--------|---------|
639639
//! | [Zed](https://github.com/zed-industries/zed) | ![GitHub stars](https://img.shields.io/github/stars/zed-industries/zed.svg?style=social) | A high-performance, multiplayer code editor |
640+
//! | [Servo](https://github.com/servo/servo) | ![GitHub stars](https://img.shields.io/github/stars/servo/servo.svg?style=social) | The Servo Parallel Browser Engine Project |
640641
//! | [OpenObserve](https://github.com/openobserve/openobserve) | ![GitHub stars](https://img.shields.io/github/stars/openobserve/openobserve.svg?style=social) | Open-source observability platform |
641642
//! | [RisingWave](https://github.com/risingwavelabs/risingwave) | ![GitHub stars](https://img.shields.io/github/stars/risingwavelabs/risingwave.svg?style=social) | Stream processing and management platform |
642-
//! | [LLDAP](https://github.com/nitnelave/lldap) | ![GitHub stars](https://img.shields.io/github/stars/nitnelave/lldap.svg?style=social) | A light LDAP server for user management |
643643
//! | [Warpgate](https://github.com/warp-tech/warpgate) | ![GitHub stars](https://img.shields.io/github/stars/warp-tech/warpgate.svg?style=social) | Smart SSH bastion that works with any SSH client |
644+
//! | [LLDAP](https://github.com/nitnelave/lldap) | ![GitHub stars](https://img.shields.io/github/stars/nitnelave/lldap.svg?style=social) | A light LDAP server for user management |
644645
//! | [Svix](https://github.com/svix/svix-webhooks) | ![GitHub stars](https://img.shields.io/github/stars/svix/svix-webhooks.svg?style=social) | The enterprise ready webhooks service |
645646
//! | [Ryot](https://github.com/IgnisDa/ryot) | ![GitHub stars](https://img.shields.io/github/stars/ignisda/ryot.svg?style=social) | The only self hosted tracker you will ever need |
646-
//! | [Lapdev](https://github.com/lapce/lapdev) | ![GitHub stars](https://img.shields.io/github/stars/lapce/lapdev.svg?style=social) | Self-hosted remote development enviroment |
647-
//! | [System Initiative](https://github.com/systeminit/si) | ![GitHub stars](https://img.shields.io/github/stars/systeminit/si.svg?style=social) | DevOps Automation Platform |
648647
//! | [OctoBase](https://github.com/toeverything/OctoBase) | ![GitHub stars](https://img.shields.io/github/stars/toeverything/OctoBase.svg?style=social) | A light-weight, scalable, offline collaborative data backend |
648+
//! | [System Initiative](https://github.com/systeminit/si) | ![GitHub stars](https://img.shields.io/github/stars/systeminit/si.svg?style=social) | DevOps Automation Platform |
649649
//!
650650
//! ## Sponsorship
651651
//!

0 commit comments

Comments
 (0)