SQLSelection

An SQL result column.

SQLSelection.swift:18
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