From bf8a1cd4da34ddaf81fb339945411a9fa2669a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 8 Sep 2015 18:56:44 +0200 Subject: [PATCH] README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index cf7499df1..3d71d5395 100644 --- a/README.md +++ b/README.md @@ -210,9 +210,13 @@ dbQueue.inDatabase { db in Person.fetch(db, "SELECT ...", arguments: ...) // AnySequence Person.fetchAll(db, "SELECT ...", arguments: ...) // [Person] Person.fetchOne(db, "SELECT ...", arguments: ...) // Person? + Person.fetchOne(db, primaryKey: 12) // Person? + Person.fetchOne(db, key: ["name": "Arthur"]) // Person? } ``` +The last two methods are the only ones that don't take a custom SQL query as an argument. If SQL is not your cup of tea, then maybe you are looking for a query builder. [stephencelis/SQLite.swift]( )https://github.com/stephencelis/SQLite.swift/blob/master/Documentation/Index.md#selecting-rows) is a pretty popular one. + - [Row Queries](#row-queries) - [Value Queries](#value-queries) - [Row Models](#row-models)