README.md

This commit is contained in:
Gwendal Roué committed 2015-09-27 21:19:53 +02:00
1 parent 6dcddedcb4
commit c1fa062b0d
1 file changed
+2 -2
+2 -2
View File
@@ -339,8 +339,8 @@ Rows, unlike dictionaries, may contain duplicate keys:
```swift
let row = Row.fetchOne(db, "SELECT 1 AS a, 2 AS a")!
row.columnNames // ["a", "a"]
row.databaseValues // [1, 2]
row["a"] // 1
row.databaseValues // [1, 2] ([DatabaseValue])
row["a"] // The value for the leftmost column `a`: 1 (DatabaseValue?)
for (columnName, databaseValue) in row { ... } // ("a", 1), ("a", 2)
```