mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Update documentation for literal interpolation
This commit is contained in:
1 parent
f15b2e12d6
commit
354d22d70d
10 files changed
+39
-39
No files matched your search
@@ -65,7 +65,7 @@ public struct SQLExpressionLiteral : SQLExpression {
|
||||
/// With Swift 5, you can safely embed raw values in your SQL queries,
|
||||
/// without any risk of syntax errors or SQL injection:
|
||||
///
|
||||
/// SQLExpressionLiteral(literal: SQLLiteral("\(1) + \(2)"))
|
||||
/// SQLExpressionLiteral(literal: "\(1) + \(2)")
|
||||
public init(literal sqlLiteral: SQLLiteral) {
|
||||
self.sqlLiteral = sqlLiteral
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user