mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-27 04:14:21 +00:00
Documentation
This commit is contained in:
1 parent
62a37ac1f4
commit
eecaa2a394
1 file changed
+7
@@ -48,6 +48,13 @@ final class SerializedDatabase {
|
||||
database.dispatchQueueID = dispatchQueueID
|
||||
}
|
||||
|
||||
/// Synchronously executes a block a serialized dispatch queue, and returns
|
||||
/// its result.
|
||||
///
|
||||
/// This method is *not* reentrant.
|
||||
///
|
||||
/// - parameter block: A block that accesses the database.
|
||||
/// - throws: The error thrown by the block.
|
||||
func inDatabase<T>(block: (db: Database) throws -> T) rethrows -> T {
|
||||
// This method is NOT reentrant.
|
||||
//
|
||||
|
||||
Reference in new issue
Block a user