From 855481256c95466f0352bfceeca318c0e25d20f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sun, 13 Sep 2015 17:44:31 +0200 Subject: [PATCH] Concurrency documentation --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d31e3ebfe..9c7cce28e 100644 --- a/README.md +++ b/README.md @@ -767,7 +767,7 @@ See [SQLite Result Codes](https://www.sqlite.org/rescode.html). **Things turn more complex as soon as there are several connections to a database file.** Here are a few questions you may ask yourself: -1. Should a reader be allowed to read while a writer is writing? +1. **Should a reader be allowed to read while a writer is writing?** *By default*, readers can't read while a writer is writing. @@ -777,13 +777,13 @@ See [SQLite Result Codes](https://www.sqlite.org/rescode.html). The busy error itself can be avoided: see below. -2. Should a reader see the changes committed by writers during its reading session? The uncommited changes? +2. **Should a reader see the changes committed by writers during its reading session? The uncommited changes?** *By default*, a reading session wrapped in a single IMMEDIATE OR EXCLUSIVE transaction can't be affected by any other concurrent writer, since all writers are locked out of the database during the reading transaction. -3. How to handle the failure when a connection tries to access the database that is already locked by another connection? +3. **How to handle the failure when a connection fails to access the database that is already locked by another connection?** - *By default*, **A SQLITE_BUSY error** is returned as soon as a connection tries to access a database that is already locked. + *By default*, a SQLITE_BUSY error is returned as soon as a connection tries to access a database that is already locked. **You can change this default concurrency handling.**