Convenience rows documentation

This commit is contained in:
Gwendal Roué committed 2015-09-30 23:14:57 +02:00
1 parent b89df62b35
commit 4e20f1faf0
1 file changed
+2 -7
+2 -7
View File
@@ -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