Gwendal Roué
70714768d9
Always use snapshots apis through grdb_xxx shims
2020-06-14 15:38:16 +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é
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é
a95b3264de
Fix documentation
2020-06-12 14:20:29 +02:00
Gwendal Roué
8d44ad7256
Database.maximumStatementArgumentCount
2020-06-12 14:19:31 +02:00
Gwendal Roué
3103e6e373
Fix Swiftlint warning
2020-06-07 17:07:31 +02:00
Gwendal Roué
3a42a4bf9f
Rename checkpoint tuple members
2020-06-07 17:07:31 +02:00
Gwendal Roué
56f6984f9d
Introduce Database.checkpoint(_🔛 )
2020-06-07 17:07:31 +02:00
Gwendal Roué
91ed7d762b
Setup busy handler as soon as possible
2020-06-07 17:07:30 +02:00
Gwendal Roué
d2b1853b7b
Database.debugDescription
2020-06-04 18:15:48 +02:00
Gwendal Roué
780ba744f1
Database.description
2020-06-03 19:37:24 +02:00
Gwendal Roué
b47680638d
Trace statements by default
2020-06-01 07:16:48 +02:00
Gwendal Roué
30f619ca2c
Refactor database tracing
...
- Make it possible to log the database label along with the executed SQL
- Make it possible to avoid arguments expansion
- Make it possible to profile statements
2020-05-31 19:08:08 +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é
0372c1dd63
Complete #747 : export the underlying SQLite library
2020-04-12 07:27:50 +02:00
Gwendal Roué
56f332122d
The observed region is always recorded
2020-03-24 22:59:07 +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é
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é
ce0df653f4
Expose Database.erase()
2020-02-29 17:19:08 +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é
5e75f0e0aa
[skip travis] remove outdated documentation
2019-12-14 19:45:33 +01:00
Gwendal Roué
4bf5724543
Can't issue ROLLBACK on suspension
...
This is because this would allow a database modification to run in an aborted transaction
2019-12-13 08:14:49 +01:00
Gwendal Roué
19ba7d67e8
Suspension is fully experimental
2019-12-12 19:26:08 +01:00
Gwendal Roué
6656f72782
Rename "lock prevention" to "suspension"
2019-12-12 08:47:49 +01:00
Gwendal Roué
7b4dc14485
[breaking] disable double-quoted string literals by default
2019-12-07 13:32:33 +01:00
Gwendal Roué
831ded3ec2
beginReadOnly only increments _readOnlyDepth if it succeeds
2019-12-03 19:18:05 +01:00
Gwendal Roué
12106387d1
Cleanup
2019-12-03 08:51:10 +01:00
Gwendal Roué
17864d3dcc
Documentation
2019-12-03 08:15:57 +01:00
Gwendal Roué
4e26e8e744
Lock prevention: better error message
2019-12-03 08:13:19 +01:00
Gwendal Roué
7f66c85e67
Cleanup
2019-12-03 08:11:14 +01:00
Gwendal Roué
9efd5965ea
Cleanup
2019-12-02 20:56:06 +01:00
Gwendal Roué
16025356bf
Adapt lock prevention to the journal mode
2019-12-02 20:27:39 +01:00
Gwendal Roué
98dc5df039
Avoid race condition in assertExclusiveLockPrevention
2019-12-01 18:44:23 +01:00
Gwendal Roué
d85a7883bb
Database.assertExclusiveLockPrevention mirrors assertNotInsideAbortedTransactionBlock
2019-12-01 18:34:51 +01:00
Gwendal Roué
b54a8f7fe8
DatabaseWriter.startPreventingExclusiveLock()
2019-12-01 17:59:49 +01:00
Gwendal Roué
9cdebc45c0
Better assertNotInsideAbortedTransactionBlock
2019-12-01 17:59:49 +01:00
Gwendal Roué
62ef81c5fb
Remove useless code
2019-11-30 21:16:48 +01:00
Gwendal Roué
fa1abdff2b
Fix Swiftlint warnings
2019-11-30 19:56:26 +01:00
Gwendal Roué
f3e9c29f82
Monitor aborted transactions
2019-11-30 19:51:55 +01:00
Gwendal Roué
0a83848cfc
DatabaseReader.interrupt()
2019-11-30 15:35:11 +01: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é
483728bfbf
Fix typo
2019-09-09 08:43:29 +02:00
Gwendal Roué
7b3275ce45
Make lastErrorCode and lastErrorMessage public
2019-09-04 08:54:06 +02:00