mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Documentation
This commit is contained in:
1 parent
fa6f0ba77c
commit
4a5cec8ed5
1 file changed
+2
@@ -3235,12 +3235,14 @@ try request.deleteAll()
|
||||
**When the query interface can not generate the SQL you need**, you can still fallback to [raw SQL](#fetch-queries):
|
||||
|
||||
```swift
|
||||
// Custom SQL is always welcome
|
||||
let persons = try Person.fetchAll(db, "SELECT ...")
|
||||
```
|
||||
|
||||
But you may prefer to bring some elegance back in, and build custom requests on top of the `Request` and `TypedRequest` protocols:
|
||||
|
||||
```swift
|
||||
// No custom SQL in sight
|
||||
let persons = try Person.someCustomRequest().fetchAll(db)
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user