README.md

This commit is contained in:
Gwendal Roué committed 2015-09-06 21:06:57 +02:00
1 parent 0fe712e736
commit 2dfe3b9d82
1 file changed
+3 -3
+3 -3
View File
@@ -291,9 +291,9 @@ Beware that 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.value(named: "a") // 1
row.columnNames // ["a", "a"]
row.databaseValues // [1, 2]
row["a"] // 1
for (columnName, databaseValue) in row { ... } // ("a", 1), ("a", 2)
```