mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Documentatioon
This commit is contained in:
1 parent
98dc5df039
commit
74bb9c11d7
1 file changed
+13
-2
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user