AllColumns
public struct AllColumns : SQLSelectable
AllColumns is the *
in SELECT *
.
You use AllColumns in your custom implementation of TableRecord.databaseSelection.
For example:
struct Player : TableRecord {
static var databaseTableName = "player"
static let databaseSelection: [SQLSelectable] = [AllColumns(), Column.rowID]
}
// SELECT *, rowid FROM player
let request = Player.all()
-
The
*
selection.For example:
// SELECT * FROM player Player.select(AllColumns())
Declaration
Swift
public init()
-
Declaration
Swift
public var sqlSelection: SQLSelection { get }