From 17b43d021af1784fd34b200bd81fff367471aab0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Fri, 22 Apr 2016 04:57:38 +0200 Subject: [PATCH] README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 53b856b5d..96b17f9bc 100644 --- a/README.md +++ b/README.md @@ -1041,11 +1041,12 @@ try dbQueue.inDatabase { db in // or dbPool.write { db in } ``` -SQLite supports [three kinds of transactions](https://www.sqlite.org/lang_transaction.html): DEFERRED, IMMEDIATE, and EXCLUSIVE. GRDB defaults to IMMEDIATE. +SQLite supports [three kinds of transactions](https://www.sqlite.org/lang_transaction.html): deferred, immediate, and exclusive. GRDB defaults to immediate. The transaction kind can be changed in the database configuration, or for each transaction: ```swift +// A connection with default DEFERRED transactions: var config = Configuration() config.defaultTransactionKind = .Deferred let dbQueue = try DatabaseQueue(path: "...", configuration: config)