Instance Method (Default implementation)grdb 7.3.0GRDB
unsafeRead(_:)
DatabaseReader.swift:745func unsafeRead<T>(_ value: (Database) throws -> T) throws -> T
func unsafeRead<T>(_ value: (Database) throws -> T) throws -> T
s4GRDB22DatabaseSnapshotReaderPAAE10unsafeReadyqd__qd__AA0B0CKXEKlF
What are these?6EQSW
import GRDB
A toolkit for SQLite databases, with a focus on application development
protocol DatabaseSnapshotReader : DatabaseReader
A type that sees an unchanging database content.
final class Database
An SQLite connection.
func unsafeRead<T>(_ value: (Database) throws -> T) throws -> T
Executes database operations, and returns their result after they have finished executing.
func unsafeRead<T>(_ value: @escaping (Database) throws -> T) async throws -> T where T : Sendable
Executes database operations, and returns their result after they have finished executing.
func asyncUnsafeRead(_ value: @escaping (Result<Database, Error>) -> Void)
func reentrantRead<T>(_ value: (Database) throws -> T) throws -> T
Executes database operations, and returns their result after they have finished executing.