Gwendal Roué
6abbf82a89
So long, visitor pattern!
2020-12-23 09:02:17 +01:00
Gwendal Roué
c844438dd6
Xcode 12.2 touch
2020-12-20 08:51:42 +01:00
Gwendal Roué
b715206502
Row values
2020-12-12 12:40:49 +01:00
Gwendal Roué
1be0a6cd5c
Add JoinAssociation to GRDBCustom
2020-12-01 19:17:34 +01:00
Gwendal Roué
e1d3c1d7dc
Give CommonTableExpression a key, for joins
2020-11-29 18:23:41 +01:00
Gwendal Roué
00a7eb53e8
First successful SQL generation with CTE
2020-11-29 16:51:52 +01:00
Gwendal Roué
f9bd457cbd
Cleanup
2020-07-11 18:33:43 +02:00
Gwendal Roué
002287ca28
Close FetchRequest, make it visitable
2020-07-11 17:30:11 +02:00
Gwendal Roué
90f2642ec6
Make good use of the visitor pattern
2020-07-05 15:07:52 +02:00
Gwendal Roué
138cc752a6
Remove FetchedRecordsController
2020-06-29 18:29:29 +02:00
Gwendal Roué
f27a297e95
Run GRDBCombine tests
2020-06-25 20:08:11 +02:00
Gwendal Roué
a0ce362197
Combine publishers
2020-06-25 19:25:29 +02:00
Gwendal Roué
8be9acf9a6
Fix Xcode 12 project warnings
2020-06-25 08:27:05 +02:00
Gwendal Roué
7e7c232fc0
Tests for ValueObservation.print()
2020-06-20 22:09:28 +02:00
Gwendal Roué
dd76cdffec
ValueObservation.handleEvents
2020-06-20 19:57:51 +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é
81213f2649
Tests for Database.trace(options:_:)
2020-05-31 19:08:42 +02:00
Gwendal Roué
17e745f52b
SQLRequestProtocol, close FetchRequest
2020-05-10 15:34:37 +02:00
Gwendal Roué
db7fb96142
Tests for persistent WAL mode
...
Tests for SQLITE_FCNTL_PERSIST_WAL: https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlpersistwal
2020-05-06 08:55:27 +02:00
Gwendal Roué
0372c1dd63
Complete #747 : export the underlying SQLite library
2020-04-12 07:27:50 +02:00
Gwendal Roué
37aa7feee9
Rename KeyPathRefining to Refinable
2020-04-09 18:50:36 +02:00
Gwendal Roué
e49800d21d
Fix build warnings
2020-04-09 17:55:49 +02:00
Gwendal Roué
d988be49a6
Revert #748
2020-04-09 13:42:37 +02:00
Gwendal Roué
ccaad8d860
Restore backward compatibility for setup of custom SQLite builds
...
User only has to rename the `import` Swift statement
2020-04-09 08:50:24 +02:00
Gwendal Roué
e2790c863f
Remove ValueObservation combine operator
2020-04-08 18:16:05 +02:00
Gwendal Roué
7ce6a8a094
Rename QueryInterfaceRequest to Request
2020-04-04 20:12:03 +02:00
Gwendal Roué
afcb9183ad
Rename GRDBCustom schemes
2020-04-04 18:37:36 +02:00
Gwendal Roué
65c009a018
Rename GRDBCustomSQLite module to GRDB
2020-04-04 17:42:00 +02:00
Gwendal Roué
1bffc4f628
ValueObservation is cancellable
2020-03-29 16:06:24 +02:00
Gwendal Roué
c83d390e60
More test rationalization
2020-03-28 14:07:36 +01:00
Gwendal Roué
a6ac69eded
Move view optimization test
2020-03-28 13:54:18 +01:00
Gwendal Roué
1914ace5f9
Test as much as possible value observations
2020-03-28 13:43:18 +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é
e68bd077ee
Remove all observationForCount/All/First methods
2020-03-25 21:44:10 +01:00
Gwendal Roué
327f07422f
Add missing FailableTestCase.swift to custom SQLite tests
2020-03-24 22:35:32 +01:00
Gwendal Roué
3c891b7ebd
ValueObservationRecorder cleanup
2020-03-21 14:36:48 +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é
4fe201f8aa
Merge branch 'development' into GRDB5
2020-03-10 19:05:29 +01:00
Gwendal Roué
3973b66ab3
Fix and test throwingFirstError
2020-03-10 09:16:24 +01:00
Gwendal Roué
512764403f
Prepare for fixits for removed deprecated methods
2020-03-08 15:39:40 +01:00
Gwendal Roué
9578f984ec
Remove useless #if compiler/swift checks
2020-03-08 13:42:44 +01:00
Gwendal Roué
224e0b7d58
Apply requirements to Xcode projects
...
Update:
SWIFT_VERSION
IPHONEOS_DEPLOYMENT_TARGET
MACOSX_DEPLOYMENT_TARGET
TVOS_DEPLOYMENT_TARGET
WATCHOS_DEPLOYMENT_TARGET
2020-03-08 10:55:26 +01:00
Gwendal Roué
4811bc3c5b
Test SQLLiteral qualification
2020-01-24 08:55:55 +01:00
Gwendal Roué
349e34b1c1
Internal API experiment: KeyPathRefining
2020-01-21 19:37:19 +01:00
Gwendal Roué
8512607fb6
Merge pull request #668 from groue/dev/suspend
...
Database Suspension
2019-12-15 18:18:58 +01:00
Gwendal Roué
af305afc2a
LastUpgradeVersion 1130
2019-12-14 18:33:00 +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é
f90a408630
Tests for aborted transactions
2019-11-30 19:52:25 +01:00