appendInterpolation(_:)
Appends a String expression.
mutating func appendInterpolation<S>(_ string: S) where S : StringProtocol
For example:
"SELECT * FROM player WHERE name = \("O'Brien")"
Appends a String expression.
mutating func appendInterpolation<S>(_ string: S) where S : StringProtocol
s4GRDB16SQLInterpolationV19appendInterpolationyyxSyRzlF
What are these?8DSZX
For example:
"SELECT * FROM player WHERE name = \("O'Brien")"
import GRDB
A toolkit for SQLite databases, with a focus on application development
struct SQLInterpolation
protocol StringProtocol : BidirectionalCollection, Comparable, ExpressibleByStringInterpolation, Hashable, LosslessStringConvertible, TextOutputStream, TextOutputStreamable where Self.Element == Character, Self.Index == String.Index, Self.StringInterpolation == DefaultStringInterpolation, Self.SubSequence : StringProtocol
A type that can represent a string as a collection of characters.
init(literalCapacity: Int, interpolationCount: Int)
mutating func appendInterpolation(_ table: any TableRecord.Type)
Appends the table name of the record type.
mutating func appendInterpolation(_ selection: (any SQLSelectable)?)
Appends the selectable SQL, or NULL if it is nil.
mutating func appendInterpolation(_ expressible: (any SQLExpressible)?)
Appends the expression SQL, or NULL if it is nil.
mutating func appendInterpolation(_ orderingTerm: any SQLOrderingTerm)
Appends the ordering SQL.
mutating func appendInterpolation(_ collation: DatabaseCollation)
Appends the name of the collation.
mutating func appendInterpolation(_ cte: CommonTableExpression<some Any>)
Appends the table name of the common table expression.
mutating func appendInterpolation(_ sqlLiteral: SQL)
Appends a raw SQL
literal.
mutating func appendInterpolation<T>(_ table: Table<T>)
Appends the table name.
mutating func appendInterpolation(_ collation: Database.CollationName)
Appends the name of the collation.
mutating func appendInterpolation(_ key: any CodingKey)
Appends the name of the coding key.
mutating func appendInterpolation(_ selection: some SQLSelectable)
Appends the selectable SQL.
mutating func appendInterpolation(_ expressible: some SQLExpressible & SQLSelectable & SQLOrderingTerm)
Appends the expression SQL.
mutating func appendInterpolation(_ key: some CodingKey & SQLExpressible & SQLSelectable & SQLOrderingTerm)
Appends the name of the coding key.
mutating func appendInterpolation<S>(_ expressible: S) where S : SQLExpressible, S : Sequence, S.Element : SQLExpressible
mutating func appendInterpolation(_ orderingTerm: some SQLOrderingTerm)
Appends the ordering SQL.
mutating func appendInterpolation(_ subquery: some SQLSubqueryable & SQLExpressible & SQLSelectable & SQLOrderingTerm)
Appends the request SQL (not wrapped inside parentheses).
mutating func appendInterpolation(_ sequence: some Sequence<some SQLExpressible>)
Appends a sequence of expressions, wrapped in parentheses.
mutating func appendInterpolation(_ sequence: some Sequence<any SQLExpressible>)
Appends a sequence of expressions, wrapped in parentheses.
mutating func appendInterpolation(_ table: (some TableRecord).Type)
Appends the table name of the record type.
mutating func appendInterpolation(_ key: some CodingKey)
Appends the name of the coding key.
mutating func appendInterpolation(columnsOf recordType: (some TableRecord).Type, tableAlias: String? = nil)
Appends the selection of the record type.
mutating func appendInterpolation(definitionFor cte: CommonTableExpression<some Any>)
Appends the definition of the common table expression.
mutating func appendInterpolation(identifier: String)
Appends a quoted identifier.
mutating func appendInterpolation(literal sqlLiteral: SQL)
Appends a raw SQL
literal.
mutating func appendInterpolation(sql: String, arguments: StatementArguments = StatementArguments())
Appends a raw SQL snippet, with eventual arguments.
mutating func appendInterpolation(tableOf record: any TableRecord)
Appends the table name of the record.
mutating func appendInterpolation(tableOf record: some TableRecord)
Appends the table name of the record.
mutating func appendLiteral(_ sql: String)