mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Fix sample code
This commit is contained in:
1 parent
f7465896fa
commit
7ee4e269c3
1 file changed
+1
-1
@@ -152,7 +152,7 @@ Such literals can be returned by Swift functions:
|
||||
|
||||
```swift
|
||||
func date(_ value: SQLExpressible) -> SQLExpression {
|
||||
SQLLiteral("DATE(\(lhs.sqlExpression)").sqlExpression
|
||||
SQLLiteral("DATE(\(lhs.sqlExpression))").sqlExpression
|
||||
}
|
||||
|
||||
// SELECT * FROM "player" WHERE DATE("createdAt") = '2020-01-23'
|
||||
|
||||
Reference in new issue
Block a user