mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Associations and Joins documentation
This commit is contained in:
1 parent
1bf7f67008
commit
fa00b8ad99
2 files changed
+4
-1
No files matched your search
@@ -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
|
||||
=========================
|
||||
|
||||
@@ -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?**
|
||||
|
||||
|
||||
Reference in new issue
Block a user