Documentatioon

This commit is contained in:
Gwendal Roué committed 2019-12-01 18:52:51 +01:00
1 parent 98dc5df039
commit 74bb9c11d7
1 file changed
+13 -2
+13 -2
View File
@@ -177,10 +177,21 @@ public protocol DatabaseWriter: DatabaseReader {
// MARK: - Exclusive Lock Prevention
// TODO: doc
/// Starts exclusive lock prevention.
///
/// During exclusive lock prevention, any exclusive lock is released as soon
/// as possible, and acquisition of exclusive lock is prevented.
///
/// All database accesses may throw a DatabaseError of code
/// `SQLITE_INTERRUPT`, or `SQLITE_ABORT`.
///
/// Read-only connections are not affected. Such errors will never happen to
/// `DatabasePool.read(_:)`, for example.
///
/// Exclusive lock prevention ends with stopPreventingExclusiveLock().
func startPreventingExclusiveLock()
// TODO: doc
/// Ends exclusive lock prevention. See startPreventingExclusiveLock().
func stopPreventingExclusiveLock()
}