mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Convenience rows documentation
This commit is contained in:
1 parent
b89df62b35
commit
4e20f1faf0
1 file changed
+2
-7
@@ -375,18 +375,13 @@ row.toDictionary() // NSDictionary
|
||||
|
||||
Rows is a fundamental type in GRDB, used by many other APIs.
|
||||
|
||||
From time to time, you'll want to build a custom one from scratch. Use dictionary initializers:
|
||||
From time to time, you'll want to build a custom one from scratch. Use the dictionary initializer:
|
||||
|
||||
```swift
|
||||
// Row(dictionary: [String: DatabaseValueConvertible?]):
|
||||
Row(dictionary: ["name": "foo", "date": nil])
|
||||
|
||||
// Row(dictionary: NSDictionary):
|
||||
let d: NSDictionary = ...
|
||||
Row(dictionary: d)
|
||||
```
|
||||
|
||||
See [Values](#values) for more information on types that adopt DatabaseValueConvertible.
|
||||
See [Values](#values) for more information on supported types.
|
||||
|
||||
|
||||
#### RowConvertible Protocol
|
||||
|
||||
Reference in new issue
Block a user