From 74eb81ca2d6a4c7b09ab48879482adc1ee5fd80c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 11 Jul 2015 17:08:47 +0200 Subject: [PATCH] README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 850f04548..c3569a1f1 100644 --- a/README.md +++ b/README.md @@ -238,11 +238,11 @@ row.value(named: "bookCount") as Int? // OK: Int? row.value(named: "bookCount") as? Int // NO NO NO DON'T DO THAT! ``` -#### General Row Processing +#### Rows as Dictionaries The `row.value(atIndex:)` and `row.value(named:)` functions above require that you know the row structure: which columns are available, in which order. -When you process an unknown row, you will prefer the subscript operator which returns `DatabaseValue`, an intermediate type between SQLite and your values: +When you process an unknown row, you will prefer thinking of it as a dictionary of `DatabaseValue`, an intermediate type between SQLite and your values: ```swift // Test if the column `name` is present: @@ -630,7 +630,7 @@ class Person : RowModel { } ``` -See [General Row Processing](#general-row-processing) for more information about the `DatabaseValue` type, and [Values](#values) about the supported property types. +See [Rows as Dictionaries](#rows-as-dictionaries) for more information about the `DatabaseValue` type, and [Values](#values) about the supported property types. Now you can fetch **lazy sequences** of row models, **arrays**, or **single** instances: