From 9be7440e5841fb45ea67c9010aa7d69bb54322db Mon Sep 17 00:00:00 2001 From: Chris Tsang Date: Fri, 3 Sep 2021 22:05:48 +0800 Subject: [PATCH] Readme --- README.md | 10 ++++------ examples/rocket_example/README.md | 2 +- src/lib.rs | 4 ++-- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 82696f29..7249b784 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,8 @@ This is an early release of SeaORM, the API is not stable yet. ``` [![Getting Started](https://img.shields.io/badge/Getting%20Started-blue)](https://www.sea-ql.org/SeaORM/docs/index) -[![Examples](https://img.shields.io/badge/Examples-orange)](https://github.com/SeaQL/sea-orm/tree/master/examples) -[![Starter Kit](https://img.shields.io/badge/Starter%20Kit-green)](https://github.com/SeaQL/sea-orm/issues/37) +[![Examples](https://img.shields.io/badge/Examples-green)](https://github.com/SeaQL/sea-orm/tree/master/examples) +[![Rocket Example](https://img.shields.io/badge/Rocket%20Example-orange)](https://github.com/SeaQL/sea-orm/tree/master/examples/rocket_example) [![Discord](https://img.shields.io/discord/873880840487206962?label=Discord)](https://discord.com/invite/uCPdDXzbdv) ## Features @@ -68,10 +68,8 @@ let cheese: cake::Model = cheese.unwrap(); let fruits: Vec = cheese.find_related(Fruit).all(db).await?; // find related models (eager) -let cake_with_fruits: Vec<(cake::Model, Vec)> = Cake::find() - .find_with_related(Fruit) - .all(db) - .await?; +let cake_with_fruits: Vec<(cake::Model, Vec)> = + Cake::find().find_with_related(Fruit).all(db).await?; ``` ### Insert diff --git a/examples/rocket_example/README.md b/examples/rocket_example/README.md index 35a20a07..596a763a 100644 --- a/examples/rocket_example/README.md +++ b/examples/rocket_example/README.md @@ -4,7 +4,7 @@ 1. Modify the `url` var in `Rocket.toml` to point to your chosen database -1. Turn on the appropriate database feature for your chosen db in `Cargo.toml` (the `default = ["sqlx-mysql"]`) +1. Turn on the appropriate database feature for your chosen db in `Cargo.toml` (the `default = ["sqlx-postgres"]` line) 1. `cargo run` to start the server diff --git a/src/lib.rs b/src/lib.rs index 24022090..ed475e6b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -32,8 +32,8 @@ //! ``` //! //! [![Getting Started](https://img.shields.io/badge/Getting%20Started-blue)](https://www.sea-ql.org/SeaORM/docs/index) -//! [![Examples](https://img.shields.io/badge/Examples-orange)](https://github.com/SeaQL/sea-orm/tree/master/examples) -//! [![Starter Kit](https://img.shields.io/badge/Starter%20Kit-green)](https://github.com/SeaQL/sea-orm/issues/37) +//! [![Examples](https://img.shields.io/badge/Examples-green)](https://github.com/SeaQL/sea-orm/tree/master/examples) +//! [![Rocket Example](https://img.shields.io/badge/Rocket%20Example-orange)](https://github.com/SeaQL/sea-orm/tree/master/examples/rocket_example) //! [![Discord](https://img.shields.io/discord/873880840487206962?label=Discord)](https://discord.com/invite/uCPdDXzbdv) //! //! ## Features