Structuregrdb 7.3.0GRDB
Trace
A ValueReducer
that handles ValueObservation
events.
struct Trace<Base> where Base : ValueReducer
A ValueReducer
that handles ValueObservation
events.
struct Trace<Base> where Base : ValueReducer
import GRDB
A toolkit for SQLite databases, with a focus on application development
enum ValueReducers
A namespace for concrete types that adopt the ValueReducer
protocol.
struct ValueObservation<Reducer> where Reducer : ValueReducer
ValueObservation
tracks changes in the results of database requests, and notifies fresh values whenever the database changes.
protocol ValueReducer : _ValueReducer
ValueReducer
supports ValueObservation
.
func handleEvents(willStart: (() -> Void)? = nil, willFetch: (() -> Void)? = nil, willTrackRegion: ((DatabaseRegion) -> Void)? = nil, databaseDidChange: (() -> Void)? = nil, didReceiveValue: ((Reducer.Value) -> Void)? = nil, didFail: ((Error) -> Void)? = nil, didCancel: (() -> Void)? = nil) -> ValueObservation<ValueReducers.Trace<Reducer>>
Performs the specified closures when observation events occur.
func print(_ prefix: String = "", to stream: sending TextOutputStream? = nil) -> ValueObservation<ValueReducers.Trace<Reducer>>
Prints log messages for all observation events.
struct Fetch<Value> where Value : Sendable
A ValueReducer
that perform database fetches.
struct Map<Base, Value> where Base : _ValueReducer, Value : Sendable
A ValueReducer
whose values consist of those in a Base
reducer passed through a transform function.
struct RemoveDuplicates<Base> where Base : ValueReducer
A ValueReducer
that notifies only values that don’t match the previously observed value.
protocol _ValueReducer
Implementation details of ValueReducer
.
func _makeFetcher() -> _Fetcher
mutating func _value(_ fetched: Base.Fetcher.Value) throws -> Base.Value?
struct _Fetcher