Skip to content

Commit

Permalink
Fix broken links
Browse files Browse the repository at this point in the history
  • Loading branch information
billy1624 committed Jul 14, 2022
1 parent f59a784 commit f4a6eb2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions SeaORM/docs/05-basic-crud/01-select.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ let vanilla: Option<cake_filling::Model> = 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::Model> = Cake::find()
Expand All @@ -35,7 +35,7 @@ let chocolate: Vec<cake::Model> = 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

Expand Down Expand Up @@ -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.
2 changes: 1 addition & 1 deletion SeaORM/docs/08-advanced-query/04-custom-joins.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down

0 comments on commit f4a6eb2

Please sign in to comment.