     }
     
     func testRxFetchAllRows(writer: DatabaseWriter, disposeBag: DisposeBag) throws {
-        let request = SQLRequest<Row>(sql: "SELECT * FROM players ORDER BY name")
+        let request = SQLRequest<Row>(sql: "SELECT * FROM player ORDER BY name")
         let expectedNames = [
             ["Arthur", "Barbara"],
             ["Arthur", "Barbie"],


// MARK: - Support

private struct Player : FetchableRecord, MutablePersistableRecord {
    var id: Int64?
    var name: String
    var email: String?
    
    init(id: Int64?, name: String, email: String?) {
        self.id = id
        self.name = name
        self.email = email
    }
    
    init(row: Row) {
        id = row["id"]
        name = row["name"]
        email = row["email"]
    }
    
    static var databaseTableName = "players"
    
    func encode(to container: inout PersistenceContainer) {
        container["id"] = id
        container["name"] = name
        container["email"] = email
    }
    
    mutating func didInsert(with rowID: Int64, for column: String?) {
        id = rowID
    }
}

extension Player : Equatable {
    static func == (lhs: Player, rhs: Player) -> Bool {
        if lhs.id != rhs.id { return false }
        if lhs.name != rhs.name { return false }
        if lhs.email != rhs.email { return false }
        return true
    }
}

extension FetchRequestTests {
    func setUpDatabase(in writer: DatabaseWriter) throws {
        try writer.write { db in
            try db.create(table: "player") { t in
                t.column("id", .integer).primaryKey()
                t.column("name", .text)
                t.column("email", .text)
