From a5bcc1d9641313b638cc34b7eca3d64d06bc1a2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Mon, 6 Jul 2015 15:24:36 +0200 Subject: [PATCH] README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 09670847e..b5a5fcd10 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ SQLite API: - [Fetch Queries](#fetch-queries) - [Swift Enums](#swift-enums) - [Custom Types](#custom-types) -- [Statements](#statements) +- [Prepared Statements](#prepared-statements) - [Error Handling](#error-handling) Application tools: @@ -381,7 +381,7 @@ db.fetchOne(DBDate.self, "SELECT ...", bindings: ...) // DBDate? ``` -## Statements +## Prepared Statements SQLite supports **Prepared Statements** that can be reused. @@ -423,8 +423,6 @@ try dbQueue.inDatabase { db in } ``` -Note that the `Database.selectStatement()` function is the **only** function of GRDB.swift that may throw an error when building a SELECT statement. All other fetching functions prefer dying in a loud and verbose crash when given an invalid SELECT statement. - ## Error Handling