Skip to content

Commit

Permalink
Merge pull request #444 from groue/feature/ValueObservationCombine
Browse files Browse the repository at this point in the history
Combine Value Observations
  • Loading branch information
groue authored Nov 24, 2018
2 parents 796644e + a521c89 commit 6a10ad0
Show file tree
Hide file tree
Showing 16 changed files with 2,080 additions and 1,095 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Release Notes

- [#442](https://github.com/groue/GRDB.swift/pull/442): Reindex
- [#443](https://github.com/groue/GRDB.swift/pull/443): In place record update
- [#444](https://github.com/groue/GRDB.swift/pull/444): Combine Value Observations
- ValueObservation has three new factory methods that accept an array of database regions, and complete the existing variadic methods (addresses [#441](https://github.com/groue/GRDB.swift/issues/441)):

```swift
Expand All @@ -22,6 +23,7 @@ Release Notes
### Documentation Diff

- [Record Comparison](README.md#record-comparison): this chapter has been updated for the new `updateChanges(_:with:)` method.
- [ValueObservation](README.md#valueobservation): this chapter has been updated for the new `ValueObservation.combine(...)` method.


### API diff
Expand Down Expand Up @@ -57,6 +59,8 @@ Release Notes
+ fetchDistinct fetch: @escaping (Database) throws -> Value)
+ -> ValueObservation<ValueReducers.Distinct<Value>>
+ where Value: Equatable
+ static func combine<R1: ValueReducer, ...>(_ o1: ValueObservation<R1>, ...)
+ -> ValueObservation<...>
}
```

Expand Down
74 changes: 72 additions & 2 deletions GRDB.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Loading

0 comments on commit 6a10ad0

Please sign in to comment.