README.md

This commit is contained in:
Gwendal Roué committed 2016-01-12 08:50:52 +01:00
1 parent c83f4e7d88
commit fa73baea9e
1 file changed
+5 -5
+5 -5
View File
@@ -492,13 +492,13 @@ Instead of rows, you can directly fetch **[values](#values)**. Like rows, fetch
```swift
dbQueue.inDatabase { db in
Int.fetch(db, "SELECT ...", arguments: ...) // DatabaseSequence<Int>
Int.fetchAll(db, "SELECT ...", arguments: ...) // [Int]
Int.fetchOne(db, "SELECT ...", arguments: ...) // Int?
Int.fetch(db, "SELECT ...", arguments: ...) // DatabaseSequence<Int>
Int.fetchAll(db, "SELECT ...", arguments: ...) // [Int]
Int.fetchOne(db, "SELECT ...", arguments: ...) // Int?
// When database may contain NULL:
Optional<Int>.fetch(db, "SELECT ...", arguments: ...) // DatabaseSequence<Int?>
Optional<Int>.fetchAll(db, "SELECT ...", arguments: ...) // [Int?]
Int?.fetch(db, "SELECT ...", arguments: ...) // DatabaseSequence<Int?>
Int?.fetchAll(db, "SELECT ...", arguments: ...) // [Int?]
}
```