From d60b68ab8afcff69cd642b70c34aefce86fb228c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 9 Mar 2019 12:45:11 +0100 Subject: [PATCH] Document the BusyMode.timeout unit (#498) --- GRDB/Core/Database.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GRDB/Core/Database.swift b/GRDB/Core/Database.swift index 41711c013..15d482433 100644 --- a/GRDB/Core/Database.swift +++ b/GRDB/Core/Database.swift @@ -955,6 +955,7 @@ extension Database { /// /// To set the busy mode of a database, use Configuration: /// + /// // Wait 1 second before failing with SQLITE_BUSY /// let configuration = Configuration(busyMode: .timeout(1)) /// let dbQueue = DatabaseQueue(path: "...", configuration: configuration) /// @@ -970,7 +971,7 @@ extension Database { case immediateError /// The SQLITE_BUSY error will be returned only if the database remains - /// locked for more than the specified duration. + /// locked for more than the specified duration (in seconds). case timeout(TimeInterval) /// A custom callback that is called when a database is locked.