Gwendal Roué
5e0535d511
ValueReducer creation does not need database access
2020-03-11 22:00:07 +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é
2f4187b084
DatabaseWriter.remove(transactionObserver:) can run from the writer queue
2020-03-10 22:06:08 +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é
9aa67f9db9
SE-0255: Implicit returns from single-expression functions
2020-03-08 23:12:46 +01:00
Gwendal Roué
9578f984ec
Remove useless #if compiler/swift checks
2020-03-08 13:42:44 +01:00
Gwendal Roué
ea421865aa
Improve barrierWriteWithoutTransaction documentation
2020-03-01 11:34:58 +01:00
Gwendal Roué
ce0df653f4
Expose Database.erase()
2020-02-29 17:19:08 +01:00
Gwendal Roué
11f8807545
Make barrierWriteWithoutTransaction a requirement of DatabaseWriter
2020-02-29 16:01:45 +01:00
Gwendal Roué
fd7783c39d
Fix uses of throwingFirstError(execute:finally:)
2020-01-06 08:12:49 +01:00
Gwendal Roué
e5726f3993
throwingFirstError(execute:finally:)
2020-01-05 13:30:12 +01:00
Gwendal Roué
6656f72782
Rename "lock prevention" to "suspension"
2019-12-12 08:47:49 +01:00
Gwendal Roué
16025356bf
Adapt lock prevention to the journal mode
2019-12-02 20:27:39 +01:00
Gwendal Roué
1c318892c9
Documentation
2019-12-01 18:56:06 +01:00
Gwendal Roué
74bb9c11d7
Documentatioon
2019-12-01 18:52:51 +01:00
Gwendal Roué
b54a8f7fe8
DatabaseWriter.startPreventingExclusiveLock()
2019-12-01 17:59:49 +01:00
Gwendal Roué
64cb3091cf
white space
2019-11-30 21:12:53 +01:00
Gwendal Roué
0a83848cfc
DatabaseReader.interrupt()
2019-11-30 15:35:11 +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é
dc2871d5eb
DatabaseWriter.spawnConcurrentRead (experimental method)
2019-06-18 08:21:55 +02:00
Gwendal Roué
02e1793cc9
Move configuration requirement to DatabaseReader
2019-06-15 04:32:14 +02:00
Gwendal Roué
65de31a335
Polishing
2019-06-14 22:01:57 +02:00
Gwendal Roué
f03fd276f1
asyncWrite's completion handler accepts a database connection
...
This guarantees that the asyncWrite method provides exclusive write access for the whole duration of (transaction + result handling).
2019-06-14 08:03:13 +02:00
Gwendal Roué
f7946834f1
Fix compiler checks for async methods
2019-06-13 14:14:35 +02:00
Gwendal Roué
b715ca5eb8
DatabaseWriter.asyncWrite
2019-06-13 13:20:59 +02:00
Gwendal Roué
bc7c3e5eb1
DatabaseReader.asyncRead
2019-06-13 08:45:49 +02:00
Gwendal Roué
f120632e36
Rename unsafeAsyncWrite to asyncWriteWithoutTransaction
...
Hold on: a more complete set of async APIs will come eventually.
2019-06-13 05:25:56 +02:00
Gwendal Roué
44138c433f
Refactor ValueObservation scheduling
2019-06-11 21:45:27 +02:00
Gwendal Roué
da042eaae9
Clean up ValueObservation fetching system
2019-06-06 19:56:41 +02: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é
db67d3840b
Principle of least astonishment: rrename argument label rawSQL to sql
2019-02-17 13:28:41 +01:00
Gwendal Roué
c546c578ce
fetchCursor/All/One(_:rawSQL:arguments:adapter:)
2019-02-17 13:28:40 +01:00
Gwendal Roué
59162d93de
Rename Database.execute(_:String) to Database.execute(rawSQL:String)
2019-02-17 13:27:54 +01:00
Gwendal Roué
5ee3b9c878
SE-0235 Add Result to the Standard Library
2019-02-09 12:54:30 +01:00
Gwendal Roué
d7188f4b93
TODO: Rename Future
2019-02-08 10:19:01 +01:00
Gwendal Roué
4489106bd6
Remove deprecated DatabaseWriter.readFromCurrentState
2019-02-08 10:16:17 +01:00
Gwendal Roué
82329c899e
Hide DatabaseWriter.remove(transactionObserver:) from Jazzy
2018-12-05 19:27:04 +01:00
Gwendal Roué
8ab6e67f07
Hide DatabaseWriter.add(observation:onError:onChange:) from Jazzy
2018-12-05 19:23:06 +01:00
Gwendal Roué
87c4775421
ValueObservation creates a reducer when its starts
2018-11-25 14:26:04 +01:00
Gwendal Roué
798b727d7f
Reducer queue honors qos and targetQueue configuration
2018-11-25 09:35:04 +01:00
Gwendal Roué
736db6a546
Confiiguration.qos and targetQueue
2018-11-24 20:48:17 +01:00
Gwendal Roué
ead2b13362
Optimize value observation for views that feed from a single table
...
By removing views from the observed database region, we allow the "single-table observation optimization" to kick in.
Thank you @foxware00 for revealing this opportunity in #441 :-)
2018-11-17 16:29:31 +01:00
Gwendal Roué
3971b43894
Cleanup
2018-11-05 09:08:14 +01:00
Gwendal Roué
7d9e87088d
Rename ValueObservation.isReadOnly to requiresWriteAccess
2018-11-02 12:31:26 +01:00
Gwendal Roué
257fc8b66a
Cleanup
2018-11-02 08:35:16 +01:00