Tweaks
This commit is contained in:
parent
df3e44a7b0
commit
989845f422
@ -17,7 +17,7 @@
|
||||
Inspired by ActiveRecord, Eloquent and TypeORM, SeaORM aims to provide you an intuitive and ergonomic
|
||||
API to make working with databases in Rust a first-class experience.
|
||||
|
||||
> This is an early WIP of SeaORM, and is not yet published. See [example](examples/sqlx-mysql/src/main.rs) for demo usage.
|
||||
> This is an early WIP of SeaORM, and is not yet published. See [example](examples/sqlx-mysql/src) for demo usage.
|
||||
|
||||
## Features
|
||||
|
||||
|
@ -25,7 +25,10 @@ pub async fn insert_and_update(db: &Database) -> Result<(), ExecErr> {
|
||||
println!();
|
||||
println!("Inserted: {:?}\n", res);
|
||||
|
||||
let pear = fruit::Entity::find_by(res.last_insert_id).one(db).await.map_err(|_| ExecErr)?;
|
||||
let pear = fruit::Entity::find_by(res.last_insert_id)
|
||||
.one(db)
|
||||
.await
|
||||
.map_err(|_| ExecErr)?;
|
||||
|
||||
println!();
|
||||
println!("Pear: {:?}\n", pear);
|
||||
|
Loading…
x
Reference in New Issue
Block a user