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
27955704f5
commit
7dab52efe6
1 file changed
+2
-3
@@ -508,8 +508,7 @@ class Person : RowModel {
|
||||
|
||||
By overriding `updateFromDatabaseRow(row: Row)`, you can load row models from the database.
|
||||
|
||||
In this method, use the subscript operator to load SQLite values that you can assign to your properties (see the [Row Queries](#row-queries) chapter for more information).
|
||||
|
||||
In this method, use the subscript operator to load SQLite values that you can assign to your properties:
|
||||
|
||||
```swift
|
||||
class Person : RowModel {
|
||||
@@ -532,7 +531,7 @@ class Person : RowModel {
|
||||
}
|
||||
```
|
||||
|
||||
For more information about the supported types, check [Value Queries](#value-queries), [Swift Enums](#swift-enums), and [Custom Types](#custom-types) chapters.
|
||||
Your properties can be assigned if they are `Bool`, `Int`, `Int64`, `Double`, `String`, `Blob`, or [Swift enums](#swift-enums). Custom types like `DBDate` are supported through the [SQLiteValueConvertible protocol](#custom-types).
|
||||
|
||||
|
||||
Fetch **lazy sequences** of row models, **arrays**, or a **single** instance:
|
||||
|
||||
Reference in new issue
Block a user