DatabaseSnapshot
public final class DatabaseSnapshot : DatabaseReader
A DatabaseSnapshot sees an unchanging database content, as it existed at the moment it was created.
See DatabasePool.makeSnapshot()
For more information, read about “snapshot isolation” at https://sqlite.org/isolation.html
-
The database configuration
Declaration
Swift
public var configuration: Configuration { get }
-
Declaration
Swift
public func close() throws
-
Declaration
Swift
public func interrupt()
-
Declaration
Swift
public func read<T>(_ block: (Database) throws -> T) rethrows -> T
-
Declaration
Swift
public func asyncRead(_ value: @escaping (Result<Database, Error>) -> Void)
-
Declaration
Swift
public func unsafeRead<T>(_ value: (Database) throws -> T) rethrows -> T
-
Declaration
Swift
public func asyncUnsafeRead(_ value: @escaping (Result<Database, Error>) -> Void)
-
Declaration
Swift
public func unsafeReentrantRead<T>(_ value: (Database) throws -> T) throws -> T