Protocolgrdb 7.3.0GRDB
DatabaseSnapshotReader
A type that sees an unchanging database content.
protocol DatabaseSnapshotReader : DatabaseReader
Browse conforming typesDo not declare new conformances to DatabaseSnapshotReader
. Only the built-in conforming types are valid.
The protocol comes with the same features and guarantees as DatabaseReader
. On top of them, a DatabaseSnapshotReader
always sees the same state of the database.
Reading from the Database
func reentrantRead<T>((Database) throws -> T
) throws -> T Executes database operations, and returns their result after they have finished executing.