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