Associations and Joins documentation

This commit is contained in:
Gwendal Roué committed 2018-05-01 21:44:43 +02:00
1 parent 1bf7f67008
commit fa00b8ad99
2 files changed
+4 -1

No files matched your search

+2
View File
@@ -109,6 +109,8 @@ let request = Book.including(optional: Book.author)
let bookInfos = BookInfo.fetchAll(db, request)
```
Before we dive in, please remember that associations can not generate all possible SQL queries that involve several tables. You may also *prefer* writing SQL, and this is just OK, because Your SQL skills are welcome: see the [Joined Queries Support](../README.md#joined-queries-support) chapter.
The Types of Associations
=========================
+2 -1
View File
@@ -3258,6 +3258,7 @@ So don't miss the [SQL API](#sqlite-api).
- [Fetching Aggregated Values](#fetching-aggregated-values)
- [Delete Requests](#delete-requests)
- [Custom Requests](#custom-requests)
- [Associations and Joins](Documentation/AssociationsBasics.md)
## Database Schema
@@ -5021,7 +5022,7 @@ LEFT JOIN round ON ...
GROUP BY ...
```
We will not talk about *building* joined queries.
We will not talk about *generating* joined queries, which is covered in [Associations](Documentation/AssociationsBasics.md).
**So what are we talking about?**