mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Documentation
This commit is contained in:
1 parent
5673d73738
commit
afc360cf78
1 file changed
+1
-1
@@ -297,7 +297,7 @@ let request = Player.filter(literal)
|
||||
let players: [Player] = try request.fetchAll(db)
|
||||
```
|
||||
|
||||
:warning: **Warning**: Not all SQL snippets are expressions, though. It is not recommended to pass `SQL` literals around, or you may end up running invalid SQL. Instead, return an explicit [SQLExpression], [SQLOrdering], [SQLSelection], [SQLRequest], or [SQLSubquery], depending on what you want to express:
|
||||
:warning: **Warning**: Not all SQL snippets are expressions. It is not recommended to pass `SQL` literals around, or you may end up forgetting their content, and eventually generate invalid SQL. When possible, prefer building an explicit [SQLExpression], [SQLOrdering], [SQLSelection], [SQLRequest], or [SQLSubquery], depending on what you want to express:
|
||||
|
||||
```swift
|
||||
// SQLExpression
|
||||
|
||||
Reference in new issue
Block a user