mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
Fix outdated documentation
This commit is contained in:
1 parent
543c361f87
commit
c4bb84a88f
1 file changed
+2
-2
@@ -7231,7 +7231,7 @@ Database accesses that run in background threads postpone the closing of connect
|
||||
|
||||
When you want to debug a request that does not deliver the expected results, you may want to print the SQL that is actually executed.
|
||||
|
||||
Use the `asSQLRequest` method:
|
||||
You can turn your request into a `SQLRequest` instance:
|
||||
|
||||
```swift
|
||||
try dbQueue.read { db in
|
||||
@@ -7239,7 +7239,7 @@ try dbQueue.read { db in
|
||||
.filter(Column("origin") == "Burgundy")
|
||||
.order(Column("price")
|
||||
|
||||
let sqlRequest = try request.asSQLRequest(db)
|
||||
let sqlRequest = try SQLRequest(db, request: request)
|
||||
print(sqlRequest.sql)
|
||||
// Prints SELECT * FROM wines WHERE origin = ? ORDER BY price
|
||||
print(sqlRequest.arguments)
|
||||
|
||||
Reference in new issue
Block a user