Gwendal Roué
|
26d2245ae8
|
Asynchronouslu remove observer when it is cancelled
|
2020-03-21 14:36:48 +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é
|
dfa40ea18f
|
Rename ValueObservation.fetchFirst to fetchValue
"First", in Swift, hints that the result is optional. But the result of this function is no longer optional.
|
2020-03-12 07:34:43 +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é
|
bf3f97b64d
|
Fix compiler warning
|
2020-03-11 22:42:48 +01:00 |
|
Gwendal Roué
|
5e0535d511
|
ValueReducer creation does not need database access
|
2020-03-11 22:00:07 +01:00 |
|
Gwendal Roué
|
b96d71d937
|
Remove public ValueObservation factory methods that accept a _ValueReducer
|
2020-03-11 21:38:48 +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é
|
4f74997235
|
Restore old disabled tests for cancelled ValueObservation
|
2020-03-10 22:06:41 +01:00 |
|
Gwendal Roué
|
9a6d6cf9c0
|
Update documentation for ValueObservation scheduling
|
2020-03-10 22:04:58 +01:00 |
|
Gwendal Roué
|
d66f2c8cfd
|
Simplify ValueObservation starting process
|
2020-03-10 20:50:06 +01:00 |
|
Gwendal Roué
|
6f239a5ad3
|
All ValueObservationScheduling cases now trigger an initial fetch
|
2020-03-10 19:42:58 +01:00 |
|
Gwendal Roué
|
2224042114
|
Rename ValueScheduling to ValueObservationScheduling
|
2020-03-10 19:10:38 +01:00 |
|
Gwendal Roué
|
3467376d7a
|
Remove unused ErrorCatcher
|
2020-03-10 08:19:27 +01:00 |
|
Gwendal Roué
|
c70b627f92
|
ValueObservation.start(in:onChange:) is unavailable
Hiding errors from user's sight was not a good idea
|
2020-03-10 08:09:53 +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é
|
9578f984ec
|
Remove useless #if compiler/swift checks
|
2020-03-08 13:42:44 +01:00 |
|
Gwendal Roué
|
a770d46843
|
Rename ValueObservation.tracking(fetch:) to ValueObservation.tracking(value:)
|
2019-08-05 09:03:05 +02:00 |
|
Gwendal Roué
|
fd18a7b75d
|
Fix for Xcode < 10.2
|
2019-08-05 07:48:34 +02: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é
|
44138c433f
|
Refactor ValueObservation scheduling
|
2019-06-11 21:45:27 +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é
|
da34694663
|
observationForCount, observationForAll, observationForFirst
|
2019-06-10 20:19:00 +02:00 |
|
Gwendal Roué
|
aca4db2c96
|
Move reducers to the ValueReducers namespace
|
2019-06-09 11:43:44 +02:00 |
|
Gwendal Roué
|
cdec1a4318
|
Remove ImmediateValueReducer
|
2019-06-09 11:43:21 +02:00 |
|
Gwendal Roué
|
3971058dd8
|
Hide request from DatabaseValue reducers
|
2019-06-08 17:28:01 +02:00 |
|
Gwendal Roué
|
ad24bd8021
|
RawValueReducer is an ImmediateValueReducer
|
2019-06-08 14:07:29 +02:00 |
|
Gwendal Roué
|
e7ed67d41d
|
Introduce ImmediateValueReducer
|
2019-06-06 20:05:25 +02:00 |
|
Gwendal Roué
|
da042eaae9
|
Clean up ValueObservation fetching system
|
2019-06-06 19:56:41 +02:00 |
|
Gwendal Roué
|
e3d2559b9d
|
Add tests for combining up to 8 ValueObservation
|
2019-06-05 08:58:42 +02:00 |
|
Gwendal Roué
|
c1a926e6dc
|
Combine up to 8 ValueObservation
|
2019-06-05 08:39:38 +02:00 |
|
Gwendal Roué
|
b31f46cbc0
|
Cleanup
|
2019-06-05 08:31:20 +02:00 |
|
Gwendal Roué
|
6b236ceb5c
|
Import ValueObservation combine reducers from #541
|
2019-06-05 08:14:36 +02:00 |
|
Gwendal Roué
|
f5be0e176d
|
Fix failing test for observation of QueryInterfaceRequest with prefetched rows
|
2019-05-21 20:27:08 +02:00 |
|
Gwendal Roué
|
0074adc023
|
Merge pull request #502 from groue/feature/rename-future
Rename Future to DatabaseFuture
|
2019-03-15 07:56:56 +01:00 |
|
Gwendal Roué
|
ca8987ad98
|
Remove ill-advised TODOs
|
2019-03-14 07:57:30 +01:00 |
|
Gwendal Roué
|
7183457217
|
Rename Future to DatabaseFuture
|
2019-03-14 06:43:40 +01:00 |
|
Gwendal Roué
|
e966544aeb
|
Remove ValueObservation.extent
|
2019-03-01 13:17:48 +01:00 |
|
Gwendal Roué
|
4935c6f258
|
Rename ValueScheduling.onQueue(_:startImmediately:) to .async(onQueue:startImmediately:)
|
2019-03-01 08:24:00 +01:00 |
|
Gwendal Roué
|
34dd011e90
|
TODO: replace ValueObservation.extent
|
2019-02-26 20:23:14 +01:00 |
|
Gwendal Roué
|
db67d3840b
|
Principle of least astonishment: rrename argument label rawSQL to sql
|
2019-02-17 13:28:41 +01:00 |
|
Gwendal Roué
|
500a5eea28
|
SQLRequest(rawSQL:arguments:adapter:)
|
2019-02-17 13:28:40 +01:00 |
|