Gwendal Roué
bc274a603c
Documentation
2018-11-02 08:35:04 +01:00
Gwendal Roué
087a899f13
Rename ValueObservation.tracking(withUniquing:fetch) to ValueObservation.tracking(_:fetchDistinct)
2018-11-01 22:18:58 +01:00
Gwendal Roué
842eaf0816
ValueObservation: perform uniquing by default
2018-11-01 21:46:59 +01:00
Gwendal Roué
30363b4a5b
Tests for ValueObservation.map
2018-10-31 19:02:47 +01:00
Gwendal Roué
bb02d9d857
ValueObservation.map
2018-10-31 12:07:08 +01:00
Gwendal Roué
cca716e1ab
Cleanup
2018-10-30 08:49:36 +01:00
Gwendal Roué
8e13cb4e6c
Cleanup
2018-10-30 07:46:41 +01:00
Gwendal Roué
d3838d1d73
ValueObservation error handling
2018-10-29 21:13:14 +01:00
Gwendal Roué
b4b824c360
dbQueue.start(observation) -> observation.start(in: dbQueue)
2018-10-29 19:31:04 +01:00
Gwendal Roué
e5f43e341b
ValueScheduling.unsafe guarantees that initial value is notified on the dispatch queue which starts the observation
2018-10-29 18:23:38 +01:00
Gwendal Roué
72c5769e8b
ValueScheduling.unsafe
2018-10-29 13:59:02 +01:00
Gwendal Roué
1985b9129a
Fix SPM build
2018-10-29 13:09:56 +01:00
Gwendal Roué
f582683f20
Move remove(transactionObserver:) to DatabaseReader
2018-10-29 12:26:12 +01:00
Gwendal Roué
f59dba711c
Try with "tracking"
2018-10-29 09:15:18 +01:00
Gwendal Roué
93326307fa
Documentation
2018-10-29 09:00:15 +01:00
Gwendal Roué
489454b0d4
add(observation:observation) -> start(observation)
2018-10-29 07:19:36 +01:00
Gwendal Roué
158177364b
Documentation
2018-10-28 22:04:39 +01:00
Gwendal Roué
0d5adfe5a9
ValueObservation: FetchableRecord & DatabaseValueConvertible tests
2018-10-28 19:16:55 +01:00
Gwendal Roué
f2c3c213cc
Read-only observation is enforced. When not read-only, savepoint is enforced.
2018-10-28 17:04:36 +01:00
Gwendal Roué
f303664808
Cleanup
2018-10-28 16:20:57 +01:00
Gwendal Roué
e0a9cced4a
First tests for ValueObservation: focus on reducers
2018-10-28 13:27:43 +01:00
Gwendal Roué
09581c6ae0
ValueObservation factory requires a DatabaseRegionConvertible. Introduce AnyDatabaseRegionConvertible.
2018-10-28 11:45:49 +01:00
Gwendal Roué
fc3aca792f
Replace InitialDispatch with ValueScheduling
2018-10-28 11:28:31 +01:00
Gwendal Roué
a043c4c29e
QoS are hard
2018-10-27 23:01:24 +02:00
Gwendal Roué
ec5451ee70
Cleanup
2018-10-27 17:18:03 +02:00
Gwendal Roué
7c4462641e
ValueObservation creation is always done with a factory initializer
2018-10-27 17:16:03 +02:00
Gwendal Roué
82efe7ca23
AnyValueReducer
2018-10-27 17:06:23 +02:00
Gwendal Roué
052d2e3008
Value (string, int, etc.) observation, with uniquing
2018-10-27 16:41:42 +02:00
Gwendal Roué
de227bdce1
Bake uniquing right into ValueObservation: introduce ValueReducer
2018-10-27 16:12:42 +02:00
Gwendal Roué
697b2af61d
Wrap long lines
2018-10-27 05:11:19 +02:00
Gwendal Roué
ff4f6f3b12
Cleanup
2018-10-27 04:59:24 +02:00
Gwendal Roué
31b688d801
ValueObservationn has a QoS
2018-10-27 04:24:17 +02:00
Gwendal Roué
f694437f5b
Add missing public qualifiers
2018-10-27 04:23:45 +02:00
Gwendal Roué
69853d7901
Now that user implementations of DatabaseWriter are no longer supported...
...
...stop pretending we have to implement concurrentRead
on top of the deprecated readFromCurrentState.
And this fixes #419 :-)
2018-10-26 16:53:30 +02:00
Gwendal Roué
9c71356e3d
Honor ValueObservation.readonly
2018-10-26 09:10:26 +02:00
Gwendal Roué
2341523c41
API cleanup
2018-10-26 08:50:59 +02:00
Gwendal Roué
0df4815086
Move ValueObservation support to DatabaseReader
2018-10-25 20:39:04 +02:00
Gwendal Roué
fe0f238f32
Cleanup
2018-10-25 08:49:57 +02:00
Gwendal Roué
fda04a105d
ValueObservation: extract callbacks
2018-10-25 08:39:52 +02:00
Gwendal Roué
e5d97c15ad
Looking for a good API
2018-10-25 08:05:55 +02:00
Gwendal Roué
ce95ff7278
Move towards observation from reader
2018-10-24 19:17:11 +02:00
Gwendal Roué
33927e7f4d
FetchResultsObserver
2018-10-23 13:24:46 +02:00
Gwendal Roué
6157ab0583
Have cursors reset their statement when they are deinitialized
...
This is the real fix for #424 . GRDB used to keep unfinished SQLite statements around. Now cursors properly reset their statement when they are done. We no longer have to clear the statement cache before a backup.
2018-10-05 08:13:23 +02:00
Gwendal Roué
fc5e92954b
SQLCipher, too, can't erase a database if there are cached prepared statements.
2018-10-04 13:34:35 +02:00
Gwendal Roué
8c3606fe4b
Fix failing test for #424
2018-10-04 07:58:36 +02:00
Gwendal Roué
a5a8b2ac40
Fix failing test for custom FTS5 tokenizer in DatabasePool
...
Tokenizer are now added to new reader connections.
2018-09-22 13:00:34 +02:00
Gwendal Roué
b9a878bb20
Cleanup
2018-09-11 08:56:29 +02:00
Gwendal Roué
8c479a863a
Documentation
2018-09-09 20:00:03 +02:00
Gwendal Roué
58a48b73ae
concurrentRead documentation
2018-09-09 19:55:07 +02:00
Gwendal Roué
41629ec9aa
Future.wait() must be called only once
2018-09-09 16:00:01 +02:00