diff --git a/examples/sqlx-mysql/src/select.rs b/examples/sqlx-mysql/src/select.rs index 0fe9c921..c344bae6 100644 --- a/examples/sqlx-mysql/src/select.rs +++ b/examples/sqlx-mysql/src/select.rs @@ -66,10 +66,7 @@ async fn find_all(db: &DbConn) -> Result<(), QueryErr> { async fn find_together(db: &DbConn) -> Result<(), QueryErr> { print!("find cakes and fruits: "); - let both = Cake::find() - .find_also_related(Fruit) - .all(db) - .await?; + let both = Cake::find().find_also_related(Fruit).all(db).await?; println!(); for bb in both.iter() { @@ -144,10 +141,8 @@ async fn count_fruits_by_cake(db: &DbConn) -> Result<(), QueryErr> { async fn find_many_to_many(db: &DbConn) -> Result<(), QueryErr> { print!("find cakes and fillings: "); - let both: Vec<(cake::Model, Vec)> = Cake::find() - .find_with_related(Filling) - .all(db) - .await?; + let both: Vec<(cake::Model, Vec)> = + Cake::find().find_with_related(Filling).all(db).await?; println!(); for bb in both.iter() { diff --git a/src/lib.rs b/src/lib.rs index 571706d6..3214dc89 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,46 +1,46 @@ //!
-//! +//! //! -//! +//! //!

SeaORM

-//! +//! //!

//! 🐚 An async & dynamic ORM for Rust //!

-//! +//! //! Built with 🔥 by 🌊🦀🐚 -//! +//! //!
-//! +//! //! # SeaORM -//! -//! Inspired by ActiveRecord, Eloquent and TypeORM, SeaORM aims to provide you an intuitive and ergonomic +//! +//! 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. -//! +//! //! ```ignore //! This is an early WIP of SeaORM, and is not yet published. See [example](examples/sqlx-mysql/src) for demo usage. //! ``` -//! +//! //! ## Features -//! +//! //! 1. Async -//! +//! //! Relying on SQLx, SeaORM is a new library with async support from day 1. -//! +//! //! 2. Dynamic -//! +//! //! Built upon SeaQuery, a dynamic query builder, SeaORM allows you to build complex queries without 'fighting the ORM'. -//! +//! //! 3. Testable -//! +//! //! Use mock connections to write unit tests for your logic. -//! +//! //! 4. API oriented -//! +//! //! Quickly build search models that help you join, filter, sort and paginate data in APIs. //! //! # A quick taste of SeaORM -//! +//! //! ## Select //! ``` //! # use sea_orm::{DbConn, entity::*, query::*, tests_cfg::*};