mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
README.md
This commit is contained in:
1 parent
0fe712e736
commit
2dfe3b9d82
1 file changed
+3
-3
@@ -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)
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user