Gwendal Roué
0372c1dd63
Complete #747 : export the underlying SQLite library
2020-04-12 07:27:50 +02:00
Gwendal Roué
c052b44999
Cleanup
2020-04-11 20:56:36 +02:00
Gwendal Roué
f27d6b07c0
Cleanup
2020-04-11 20:45:00 +02:00
Gwendal Roué
8ef4c9b241
Remove convenience Result.tryMap
2020-04-09 17:45:12 +02:00
Gwendal Roué
d72000c6a3
Use scheduling paramater name for consistency with GRDBCombine and RxGRDB
2020-03-31 20:25:36 +02:00
Gwendal Roué
66dc482b02
Don't pretend database deallocation is a cancel event
2020-03-29 16:30:29 +02:00
Gwendal Roué
1bffc4f628
ValueObservation is cancellable
2020-03-29 16:06:24 +02:00
Gwendal Roué
87b54f5da2
Protect ValueObserver state behind a lock
2020-03-29 10:28:37 +02:00
Gwendal Roué
90d5316781
Hide ValueObservationScheduler implementation
2020-03-28 19:53:18 +01:00
Gwendal Roué
303a0cc150
immediateInitialValue is a better name
2020-03-28 19:49:07 +01:00
Gwendal Roué
5d196c449d
Value Observation does no longer retain DatabaseWriter
2020-03-28 17:11:57 +01:00
Gwendal Roué
88ddce5fac
Make sure the observer is cancelled on error
2020-03-28 11:42:53 +01:00
Gwendal Roué
23d428290b
Assume that error ends the observation, and have database pool always perform a concurrent initial fetch
2020-03-28 10:30:36 +01:00
Gwendal Roué
97d06a0fae
Fix typo
2020-03-27 20:36:29 +01:00
Gwendal Roué
4309eaba64
Scheduling of fresh values is no longer an attribute of ValueObservation
2020-03-27 19:49:11 +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é
1c59278115
Prefer dbResult argument name for async read closures
2020-03-21 14:36:48 +01:00
Gwendal Roué
2824636650
Prepare for initiial concurrent fetch of ValueObservation in a DatabasePool
2020-03-21 14:36:48 +01:00
Gwendal Roué
9aa67f9db9
SE-0255: Implicit returns from single-expression functions
2020-03-08 23:12:46 +01:00
Gwendal Roué
00b0dc2a04
Remove availability checks for macOS 10.10 (forgotten in #719 )
2020-03-08 19:08:15 +01:00
Gwendal Roué
bfdd0696da
Remove deprecated setupMemoryManagement methods
2020-03-08 16:08:12 +01:00
Gwendal Roué
130e510f8c
Remove deprecated passphrase methods
2020-03-08 16:00:19 +01:00
Gwendal Roué
9578f984ec
Remove useless #if compiler/swift checks
2020-03-08 13:42:44 +01:00
Gwendal Roué
7c684d06c1
Simplify schema cache management
...
We don't need EmptyDatabaseSchemaCache. It does not help unsafe reads to work better if concurrent writes modify the schema anyway.
2020-03-01 15:51:37 +01:00
Gwendal Roué
ea421865aa
Improve barrierWriteWithoutTransaction documentation
2020-03-01 11:34:58 +01:00
Gwendal Roué
9ed8cb3eff
Fix Swiftlint warnings
2020-02-29 14:30:05 +01:00
Pakkito
eb98f50891
Avoid breaking changes
...
- Deprecate setupMemoryManagement(application:)
- UIApplication is not available on watchOS, so instead of checking against `#if canImport(UIKit)` we use `#if os(iOS)`
Signed-off-by: Pakkito <pe@pierlis.com >
2020-02-28 18:00:16 +01:00
Pakkito
32675b38f1
Automatically setup memory management when UIKit is available
...
Signed-off-by: Pakkito <pe@pierlis.com >
2020-02-28 17:21:27 +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é
b54a8f7fe8
DatabaseWriter.startPreventingExclusiveLock()
2019-12-01 17:59:49 +01:00
Gwendal Roué
0a83848cfc
DatabaseReader.interrupt()
2019-11-30 15:35:11 +01:00
Gwendal Roué
9d5d7f0216
Database.withSchemaCache
2019-10-10 13:51:00 +02:00
Gwendal Roué
ff21f86341
DatabasePool setup: handle #102 in a savepoint
2019-10-10 13:49:12 +02:00
Gwendal Roué
c89d41adbb
Rename readerConfig to readerConfiguration
2019-10-10 13:48:20 +02:00
Gwendal Roué
b3e1bf6f05
Database.checkpoint
2019-10-10 13:45:01 +02:00
Gwendal Roué
fc57a69672
Rename beginSnapshotTransaction to beginSnapshotTransaction
2019-10-10 13:43:10 +02:00
Gwendal Roué
fdbc0c8ec8
LockedBox: for when one does not need single writer/multiple readers
2019-10-10 13:41:58 +02:00
Gwendal Roué
b9e2f35728
Deprecate change(passphrase:), and provide an alternative solution
2019-09-02 09:05:37 +02:00
Gwendal Roué
d644f01557
Deprecate Configuration.passphrase, introduce Database.usePassphrase(_:)
2019-09-02 08:38:15 +02:00
Gwendal Roué
c7e4492846
Fix DatabasePool.change(passphrase:)
2019-09-01 19:33:03 +02:00
Gwendal Roué
8580023eda
DatabasePool.barrierWriteWithoutTransaction
2019-09-01 16:46:17 +02:00
Gwendal Roué
e495df0114
Pool.barrier
2019-09-01 16:32:18 +02:00
Gwendal Roué
35ceeebb3d
Style tweaks
2019-07-26 20:56:33 +02:00
Gwendal Roué
df6bb8761c
Swiftlint + whitespace
2019-07-01 08:57:53 +02:00
Gwendal Roué
2730f8f806
Fix DatabasePool.concurrentRead for Swift < 5
2019-06-18 08:37:21 +02:00
Gwendal Roué
dc2871d5eb
DatabaseWriter.spawnConcurrentRead (experimental method)
2019-06-18 08:21:55 +02:00
Gwendal Roué
173c8af3ef
asyncConcurrentRead documentation
2019-06-17 19:48:25 +02:00
Gwendal Roué
3cea3db2b4
DatabasePool.asyncConcurrentRead
2019-06-17 19:35:11 +02:00
Gwendal Roué
b715ca5eb8
DatabaseWriter.asyncWrite
2019-06-13 13:20:59 +02:00