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
e08f3e3bdc
commit
e1584cd504
1 file changed
+2
-2
@@ -301,7 +301,7 @@ for row in Row.fetch(db, "SELECT ...") {
|
||||
**Read column values** by index or column name:
|
||||
|
||||
```swift
|
||||
let name: String = row.value(atIndex: 0)
|
||||
let name: String = row.value(atIndex: 0) // 0 is the leftmost column
|
||||
let name: String = row.value(named: "name")
|
||||
```
|
||||
|
||||
@@ -396,7 +396,7 @@ See [Values](#values) for more information on supported types.
|
||||
|
||||
### Value Queries
|
||||
|
||||
Instead of rows, you can directly fetch **values**. Like rows, fetch them as **sequences**, **arrays**, or **single** values:
|
||||
Instead of rows, you can directly fetch **values**. Like rows, fetch them as **sequences**, **arrays**, or **single** values. Values are extracted from the leftmost column of the SQL queries:
|
||||
|
||||
```swift
|
||||
dbQueue.inDatabase { db in
|
||||
|
||||
Reference in new issue
Block a user