Row

A database row.

Row.swift:125
final class Row

To get Row instances, you will generally fetch them from a Database instance. For example:

try dbQueue.read { db in
    let rows = try Row.fetchCursor(db, sql: """
        SELECT * FROM player
        """)
    while let row = try rows.next() {
        let id: Int64 = row["id"]
        let name: String = row["name"]
    }
}

Creating Rows

Copying a Row

Row Informations

Accessing Row Values by Int Index

Accessing Row Values by Column Name

Accessing Row Values by Column

Row Scopes & Associated Rows

Fetching Rows from Raw SQL

Fetching Rows from a Prepared Statement

Fetching Rows from a Request

Row as RandomAccessCollection

Adapting Rows

Supporting Types