Gwendal Roué
927fc21f00
NEW: ValueObservation.map accepts a throwing closure
...
This will allow us to call a throwing FetchableRecord.init(row:) from this operator
2022-08-21 21:22:34 +02:00
Gwendal Roué
6ab3fea8fb
Refactor ValueObservation
2022-03-17 18:44:30 +01:00
Gwendal Roué
340203686d
ValueObservation.removeDuplicates(by:)
2021-12-12 15:12:34 +01:00
Gwendal Roué
89b1783220
TrackingMode is a property of ValueObservation
...
No reducer changes the tracking mode, so let's simplify the code.
2021-12-02 17:22:18 +01:00
Gwendal Roué
85747935c8
ValueObservation can track an explicit database region
2021-12-02 17:22:18 +01:00
Gwendal Roué
6240585a03
Make sure ValueObservation fetches in an isolated transaction
...
Previously, ValueObservation could fetch in a non-isolated way. When an external connection would commit changes, we could fetch inconsistent values. Here we make sure ValueObservation always fetch in an isolated way.
2021-12-02 09:46:02 +01:00
Gwendal Roué
836efb120f
Xcode 12.3 formatting
2020-12-23 12:13:05 +01:00
Gwendal Roué
6abbf82a89
So long, visitor pattern!
2020-12-23 09:02:17 +01:00
Gwendal Roué
7f229468d2
Documentation
2020-07-12 15:12:04 +02:00
Gwendal Roué
07092169bf
Documentation
2020-07-12 14:17:58 +02:00
Gwendal Roué
90f2642ec6
Make good use of the visitor pattern
2020-07-05 15:07:52 +02:00
Gwendal Roué
4e8b231c42
Rename handleEvents arguments
2020-06-22 14:23:33 +02:00
Gwendal Roué
5c4b282e27
Refactor ValueObservation events handling
2020-06-21 09:17:12 +02:00
Gwendal Roué
dd76cdffec
ValueObservation.handleEvents
2020-06-20 19:57:51 +02:00
Gwendal Roué
4f8b681737
Documentation
2020-04-11 18:26:42 +02:00
Gwendal Roué
1b4e26f61c
Cleanup
2020-04-10 12:35:33 +02:00
Gwendal Roué
e2790c863f
Remove ValueObservation combine operator
2020-04-08 18:16:05 +02:00
Gwendal Roué
79d6b02a2f
Cleanup
2020-03-25 13:57:49 +01:00
Gwendal Roué
f711978145
Documentation
2020-03-25 08:25:05 +01:00
Gwendal Roué
a647e200d9
Replace Never with ValueReducers.Auto
2020-03-25 08:19:47 +01:00
Gwendal Roué
294a04e9f6
Rename tracking(value:) to tracking(_:)
2020-03-25 08:11:43 +01:00
Gwendal Roué
56f332122d
The observed region is always recorded
2020-03-24 22:59:07 +01:00
Gwendal Roué
d494d12293
Fix typo
2020-03-24 22:59:07 +01:00
Gwendal Roué
0c464def7f
Fix documentation
2020-03-23 18:00:45 +01:00
Gwendal Roué
2b78a646ed
Mor preparation for initiial concurrent fetch of ValueObservation in a DatabasePool
2020-03-21 14:36:48 +01:00
Gwendal Roué
936c92eba6
All value reducers must emit an initial value
...
This disqualifies compactMap as a valid ValueObservation transformation: it has been removed.
This simplifies implementation as well.
2020-03-12 07:18:40 +01:00
Gwendal Roué
5e0535d511
ValueReducer creation does not need database access
2020-03-11 22:00:07 +01:00
Gwendal Roué
28c32c6af8
_ValueReducer is the only protocol accepted by ValueObservation
...
Also, we now use Never as the bottom reducer which helps us define the ValueObservation factory methods.
2020-03-11 21:38:41 +01:00
Gwendal Roué
f80c5ce348
Make the ValueReducer protocol unavailable
...
# Conflicts:
# GRDB/ValueObservation/ValueReducer/ValueReducer.swift
2020-03-11 21:38:20 +01:00
Gwendal Roué
9aa67f9db9
SE-0255: Implicit returns from single-expression functions
2020-03-08 23:12:46 +01:00
Gwendal Roué
5dd86d2453
Remove deprecated ValueObservation methods
2020-03-08 17:53:39 +01:00
Gwendal Roué
a5c8f23ba4
Support for variable observed region of ValueObservation based on actual selection
2019-08-03 16:32:33 +02:00
Gwendal Roué
af0ac156aa
More explicit observation initializers
2019-08-03 14:21:46 +02:00
Gwendal Roué
df6bb8761c
Swiftlint + whitespace
2019-07-01 08:57:53 +02:00
Gwendal Roué
bc7c3e5eb1
DatabaseReader.asyncRead
2019-06-13 08:45:49 +02:00
Gwendal Roué
085f4c9597
removeDuplicates
2019-06-12 19:48:32 +02:00
Gwendal Roué
bec731d763
Rename file
2019-06-12 19:40:07 +02:00
Gwendal Roué
f502db40b0
combine instance method
2019-06-10 23:24:02 +02:00
Gwendal Roué
86f7ab74a7
More ValueReducers namespacing
2019-06-10 22:18:20 +02:00
Gwendal Roué
aca4db2c96
Move reducers to the ValueReducers namespace
2019-06-09 11:43:44 +02:00