Readme
This commit is contained in:
parent
6847dabb1e
commit
dbbc8af23c
10
README.md
10
README.md
@ -25,7 +25,7 @@ This is an early release of SeaORM, the API is not stable yet.
|
|||||||
```
|
```
|
||||||
|
|
||||||
[](https://www.sea-ql.org/SeaORM/docs/index)
|
[](https://www.sea-ql.org/SeaORM/docs/index)
|
||||||
[](https://github.com/SeaQL/sea-orm/tree/master/examples/sqlx)
|
[](https://github.com/SeaQL/sea-orm/tree/master/examples)
|
||||||
[](https://github.com/SeaQL/sea-orm/issues/37)
|
[](https://github.com/SeaQL/sea-orm/issues/37)
|
||||||
[](https://discord.com/invite/uCPdDXzbdv)
|
[](https://discord.com/invite/uCPdDXzbdv)
|
||||||
|
|
||||||
@ -108,7 +108,7 @@ let pear: fruit::ActiveModel = Fruit::update(pear).exec(db).await?;
|
|||||||
|
|
||||||
// update many: UPDATE "fruit" SET "cake_id" = NULL WHERE "fruit"."name" LIKE '%Apple%'
|
// update many: UPDATE "fruit" SET "cake_id" = NULL WHERE "fruit"."name" LIKE '%Apple%'
|
||||||
Fruit::update_many()
|
Fruit::update_many()
|
||||||
.col_expr(fruit::Column::CakeId, Expr::value(Value::Null))
|
.col_expr(fruit::Column::CakeId, Expr::value(Value::Int(None)))
|
||||||
.filter(fruit::Column::Name.contains("Apple"))
|
.filter(fruit::Column::Name.contains("Apple"))
|
||||||
.exec(db)
|
.exec(db)
|
||||||
.await?;
|
.await?;
|
||||||
@ -148,6 +148,12 @@ fruit::Entity::delete_many()
|
|||||||
.await?;
|
.await?;
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Learn More
|
||||||
|
|
||||||
|
1. [Design](https://github.com/SeaQL/sea-orm/tree/master/DESIGN.md)
|
||||||
|
1. [Architecture](https://github.com/SeaQL/sea-orm/tree/master/ARCHITECTURE.md)
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
Licensed under either of
|
Licensed under either of
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
//! ```
|
//! ```
|
||||||
//!
|
//!
|
||||||
//! [](https://www.sea-ql.org/SeaORM/docs/index)
|
//! [](https://www.sea-ql.org/SeaORM/docs/index)
|
||||||
//! [](https://github.com/SeaQL/sea-orm/tree/master/examples/sqlx)
|
//! [](https://github.com/SeaQL/sea-orm/tree/master/examples)
|
||||||
//! [](https://github.com/SeaQL/sea-orm/issues/37)
|
//! [](https://github.com/SeaQL/sea-orm/issues/37)
|
||||||
//! [](https://discord.com/invite/uCPdDXzbdv)
|
//! [](https://discord.com/invite/uCPdDXzbdv)
|
||||||
//!
|
//!
|
||||||
@ -180,6 +180,12 @@
|
|||||||
//! # Ok(())
|
//! # Ok(())
|
||||||
//! # }
|
//! # }
|
||||||
//! ```
|
//! ```
|
||||||
|
//!
|
||||||
|
//! ## Learn More
|
||||||
|
//!
|
||||||
|
//! 1. [Design](https://github.com/SeaQL/sea-orm/tree/master/DESIGN.md)
|
||||||
|
//! 1. [Architecture](https://github.com/SeaQL/sea-orm/tree/master/ARCHITECTURE.md)
|
||||||
|
//!
|
||||||
//! ## License
|
//! ## License
|
||||||
//!
|
//!
|
||||||
//! Licensed under either of
|
//! Licensed under either of
|
||||||
|
Loading…
x
Reference in New Issue
Block a user