AllColumns

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: [any SQLSelectable] = [AllColumns(), Column.rowID]
}

// SELECT *, rowid FROM player
let request = Player.all()
  • The * selection.

    For example:

    // SELECT * FROM player
    Player.select(AllColumns())