Instance Methodgrdb 7.4.0GRDB
close
DatabaseSnapshot.swift:137func close() throws
func close() throws
import GRDB
A toolkit for SQLite databases, with a focus on application development
final class DatabaseSnapshot
A database connection that serializes accesses to an unchanging database content, as it existed at the moment the snapshot was created.
var configuration: Configuration { get }
var path: String { get }
The path to the database file.
func _add<Reducer>(observation: ValueObservation<Reducer>, scheduling scheduler: some ValueObservationScheduler, onChange: @escaping (Reducer.Value) -> Void) -> AnyDatabaseCancellable where Reducer : ValueReducer
func asyncRead(_ value: @escaping (Result<Database, Error>) -> Void)
func asyncUnsafeRead(_ value: @escaping (Result<Database, Error>) -> Void)
func interrupt()
func read<T>(_ block: (Database) throws -> T) rethrows -> T
func read<T>(_ value: @escaping (Database) throws -> T) async throws -> T where T : Sendable
func unsafeRead<T>(_ value: (Database) throws -> T) rethrows -> T
func unsafeRead<T>(_ value: @escaping (Database) throws -> T) async throws -> T where T : Sendable
func unsafeReentrantRead<T>(_ value: (Database) throws -> T) throws -> T