diff --git a/SeaORM/docs/05-basic-crud/01-select.md b/SeaORM/docs/05-basic-crud/01-select.md index 7a90e528725..4234b50ca26 100644 --- a/SeaORM/docs/05-basic-crud/01-select.md +++ b/SeaORM/docs/05-basic-crud/01-select.md @@ -23,7 +23,7 @@ let vanilla: Option = CakeFilling::find_by_id((6, 8)).one(d In addition to retrieving a model by primary key, you can also retrieve one or more models matching specific conditions in a certain order. The [`find`](https://docs.rs/sea-orm/*/sea_orm/entity/trait.EntityTrait.html#method.find) method gives you access to the query builder in SeaORM. It supports the construction of all common select expressions like `where` and `order by`. They can be constructed using [`filter`](https://docs.rs/sea-orm/*/sea_orm/entity/prelude/trait.QueryFilter.html#method.filter) and [`order_by_*`](https://docs.rs/sea-orm/*/sea_orm/query/trait.QueryOrder.html#method.order_by) methods respectively. -> Read more about [conditional expression](09-advanced-query/02-conditional-expression.md). +> Read more about [conditional expression](08-advanced-query/02-conditional-expression.md). ```rust let chocolate: Vec = Cake::find() @@ -35,7 +35,7 @@ let chocolate: Vec = Cake::find() ## Find Related Models -> Read more about [table joins](09-advanced-query/04-custom-joins.md). +> Read more about [table joins](08-advanced-query/04-custom-joins.md). ### Lazy Loading @@ -146,4 +146,4 @@ let rows = cake_filling::Entity::find() ## Select custom -If you want to select custom columns and expressions, read the [custom select](09-advanced-query/01-custom-select.md) section. +If you want to select custom columns and expressions, read the [custom select](08-advanced-query/01-custom-select.md) section. diff --git a/SeaORM/docs/08-advanced-query/04-custom-joins.md b/SeaORM/docs/08-advanced-query/04-custom-joins.md index da94db6e65c..fa34b664907 100644 --- a/SeaORM/docs/08-advanced-query/04-custom-joins.md +++ b/SeaORM/docs/08-advanced-query/04-custom-joins.md @@ -51,4 +51,4 @@ assert_eq!( ); ``` -> You can use a custom `struct` derived from the `FromQueryResult` trait to handle the result of such complex query. See [here](09-advanced-query/01-custom-select.md#handling-custom-selects) for details. +> You can use a custom `struct` derived from the `FromQueryResult` trait to handle the result of such complex query. See [here](08-advanced-query/01-custom-select.md#handling-custom-selects) for details. diff --git a/SeaORM/docs/09-generate-sea-query-statement/01-create-table.md b/SeaORM/docs/09-generate-sea-query-statement/01-create-table.md index d045c29a13d..c727013a236 100644 --- a/SeaORM/docs/09-generate-sea-query-statement/01-create-table.md +++ b/SeaORM/docs/09-generate-sea-query-statement/01-create-table.md @@ -4,7 +4,7 @@ To create tables in database instead of writing [`TableCreateStatement`](https:/ Below we use [`CakeFillingPrice`](https://github.com/SeaQL/sea-orm/blob/master/src/tests_cfg/cake_filling_price.rs) entity to demo its generated SQL statement. You can construct the same statement with [`TableCreateStatement`](https://docs.rs/sea-query/*/sea_query/table/struct.TableCreateStatement.html). -Note that since version `0.7.0`, [`Schema::create_table_from_entity`](https://docs.rs/sea-orm/*/sea_orm/schema/struct.Schema.html#method.create_table_from_entity) no longer create indexes. If you need to create indexes in database please check [here](09-generate-database-schema/03-create-index.md) for details. +Note that since version `0.7.0`, [`Schema::create_table_from_entity`](https://docs.rs/sea-orm/*/sea_orm/schema/struct.Schema.html#method.create_table_from_entity) no longer create indexes. If you need to create indexes in database please check [here](09-generate-sea-query-statement/03-create-index.md) for details. ```rust use sea_orm::{sea_query::*, tests_cfg::*, EntityName, Schema};