From 9e50aa8bd33b767a73d8a96e3aaa7aab21029952 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 27 Oct 2015 16:37:39 +0100 Subject: [PATCH] README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7d71452ac..86b15c492 100644 --- a/README.md +++ b/README.md @@ -499,6 +499,8 @@ dbQueue.inDatabase { db in } ``` +The `fetchOne(_:sql:arguments:)` method returns an optional value which is nil in two cases: either the SELECT statement yielded no row, or one row with a NULL value. + > :point_up: **Note**: Sequences can not be consumed outside of a database queue, but arrays are OK: > > ```swift @@ -508,8 +510,7 @@ dbQueue.inDatabase { db in > } > for name in names { ... } // OK > ``` -> -> :point_up: **Note**: The `fetchOne(_:sql:arguments:)` method returns an optional value which is nil in two cases: either the SELECT statement yielded no row, or one row with a NULL value. + ## Values @@ -1441,6 +1442,8 @@ dbQueue.inDatabase { db in } ``` +The order of sequences and arrays returned by the key-based methods is undefined. To specify the order of returned elements, use a raw SQL query. + > :point_up: **Note**: Sequences can not be consumed outside of a database queue, but arrays are OK: > > ```swift @@ -1450,8 +1453,6 @@ dbQueue.inDatabase { db in > } > for person in persons { ... } // OK > ``` -> -> :point_up: **Note**: The order of sequences and arrays returned by the key-based methods is undefined. To specify the order of returned elements, use a raw SQL query. ### Insert, Update and Delete