Static Propertygrdb 7.1.0GRDB
allColumns
All columns of the requested table.
static var allColumns: AllColumns { get }
For example:
struct Player: FetchableRecord, TableRecord {
static var databaseSelection: [any SQLSelectable] {
[.allColumns, .rowID]
}
}
// SELECT *, rowid FROM player
Player.fetchAll(db)