Structuregrdb 7.2.0GRDB
SQLSelection
An SQL result column.
struct SQLSelection
SQLSelection
is an opaque representation of an SQL result column. You generally build SQLSelection
from other expressions. For example:
// Aliased expressions
(Column("score") + Column("bonus")).forKey("total")
// Literal selection
SQL("IFNULL(name, \(defaultName)) AS name").sqlSelection
SQLSelection
is better used as the return type of a function. For function arguments, prefer the SQLSelectable
protocol.
Related SQLite documentation: https://www.sqlite.org/syntax/result-column.html