Gwendal Roué
836efb120f
Xcode 12.3 formatting
2020-12-23 12:13:05 +01:00
Gwendal Roué
f84e25f929
Remove dependency on SQLITE_ENABLE_SNAPSHOT
...
Address #845 and #846
2020-10-06 08:30:41 +02:00
Gwendal Roué
7a2c1413fe
Fix DatabaseSnapshot
2020-09-06 13:40:03 +02:00
Gwendal Roué
3c38aa1996
Functions, Collations, and tokenizers are no longer available on DatabaseQueue, Pool, and Snapshot
2020-09-06 13:18:58 +02:00
Gwendal Roué
86b9616dd7
DatabasePool readers don't invalidate their database schema cache until schema is actually changed.
2020-07-25 18:20:43 +02:00
Gwendal Roué
07092169bf
Documentation
2020-07-12 14:17:58 +02:00
Gwendal Roué
ae41859bbb
Cleanup
2020-07-11 10:57:24 +02:00
Gwendal Roué
68785d1c2d
Hide _SQLAssociation
2020-07-05 16:21:28 +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
Alexandre Colucci
f97e0cc540
Fix inline documentation for the setupMemoryManagement() function. In GRDB 5.0.0 and later, the parameter 'application' has been removed.
2020-06-20 12:09:59 +02:00
Gwendal Roué
ec0e8672be
Documentation, cleanup
2020-06-14 11:03:24 +02:00
Gwendal Roué
9215f88e7f
Documentation, cleanup, and checkpoint prevention
2020-06-14 10:47:27 +02:00
Gwendal Roué
510daa84a7
This is hard
2020-06-14 06:36:53 +02:00
Gwendal Roué
eacf48fef3
More snapshot-based optimization of ValueObservation with DatabasePool
...
This time, for the .immediate scheduler.
2020-06-14 06:34:08 +02:00
Gwendal Roué
0dee6425d1
Fix free function
2020-06-14 05:36:33 +02:00
Gwendal Roué
842846dbc4
Documentation
2020-06-14 05:36:12 +02:00
Gwendal Roué
f1e65fbb2c
Optimization of ValueObservation with DatabasePool thanks to SQLITE_ENABLE_SNAPSHOT
...
The difficulty is that system <sqlite3.h> does not contain the expected declarations, even when SQLite is compiled with SQLITE_ENABLE_SNAPSHOT :-(
Since snapshots are not exposed in any public API, we don't bother dealing with availability checks. We just add the missing declarations, and rely on the linker in order to spot eventual errors.
This commit is likely to break Linux builds, though.
2020-06-13 20:14:40 +02:00
Gwendal Roué
372996deb3
TODO
...
# Conflicts:
# TODO.md
2020-06-13 13:36:51 +02:00
Gwendal Roué
5f88a400d5
DatabasePool.checkpoint(_:) is unavailable
2020-06-07 17:07:31 +02:00
Gwendal Roué
780ba744f1
Database.description
2020-06-03 19:37:24 +02:00
Gwendal Roué
9ee3fd38b5
Remove mentions of unsupported iOS versions
2020-05-31 13:54:02 +02:00
Gwendal Roué
289394c7ac
Turn LockedBox and ReadWriteBox into property wrappers.
...
Also fix an old concurrency bug in tests, regarding query recording
2020-05-30 13:52:39 +02:00
Gwendal Roué
6a98a46c85
Speed up slow tests
2020-05-01 20:11:02 +02:00
Gwendal Roué
399766fe10
Fix #739
2020-04-28 19:19:30 +02:00
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