Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ValueObservation.mapReducer #452

Merged
merged 4 commits into from
Dec 2, 2018
Merged

ValueObservation.mapReducer #452

merged 4 commits into from
Dec 2, 2018

Conversation

groue
Copy link
Owner

@groue groue commented Dec 1, 2018

This PR introduces ValueObservation.mapReducer, which supports advanced ValueObservation derivations:

extension ValueObservation {
    func mapReducer<R>(_ transform: @escaping (Database, Reducer) throws -> R)
        -> ValueObservation<R>
}

and expose more precise value reducers
@groue groue force-pushed the feature/MapReducer branch from bcd3451 to b8e3994 Compare December 1, 2018 23:01
@groue groue merged commit 7b97d75 into development Dec 2, 2018
@groue groue deleted the feature/MapReducer branch December 2, 2018 06:56
@groue groue added this to the GRDB 3.6.0 milestone Dec 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant