Gwendal Roué
c3e7736534
Dump schema
2024-03-17 20:45:31 +01:00
Gwendal Roué
ba320a08e3
Make dumpTables able to print views
2023-10-28 15:46:31 +02:00
Gwendal Roué
69ae4c4e96
Dump
2023-10-12 09:17:50 +02:00
Gwendal Roué
7cbcbe12f0
Expose path on DatabaseReader
2023-08-31 09:42:13 +02:00
Gwendal Roué
d3c289a320
Availability checks cleanup
2023-01-22 12:37:40 +01:00
baegteun
a9feac1339
♻️ :: OSX -> macOS in Availability Check
2023-01-17 13:58:37 +09:00
Gwendal Roué
0dd17a9a16
Turn ValueObservationScheduler into a protocol
2022-12-29 12:38:06 +01:00
Gwendal Roué
e430b4ebd7
DatabaseSnapshotReader reentrant read is not unsafe
2022-11-25 08:15:14 +01:00
Gwendal Roué
b1770e89b7
Introduce DatabaseSnapshotReader
2022-11-17 20:11:58 +01:00
Gwendal Roué
433ed36a4b
More documentation about transactions
2022-11-14 18:51:39 +01:00
Gwendal Roué
c23b93d71b
Document that reentrant database accesses use the current database connection when possible
2022-11-14 18:38:33 +01:00
Gwendal Roué
b8bc8273a9
Turn snapshot tokens into a proper reader: DatabaseSnapshotPool
2022-11-14 18:22:13 +01:00
Gwendal Roué
be9740b5f6
Discourage usage of reentrant by linking to the related doc
2022-11-10 08:50:41 +01:00
Gwendal Roué
85b2e113b2
Relocate DatabaseSnapshot documentation
2022-11-09 17:16:03 +01:00
Gwendal Roué
c5a0598cea
DocC: Concurrency Guides
2022-11-09 13:22:53 +01:00
Gwendal Roué
71880a9b8e
Enhance Documentation
2022-11-09 13:20:08 +01:00
Gwendal Roué
13c804d1cc
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
1818534513
DocC
2022-11-06 16:02:36 +01:00
Gwendal Roué
6add38e3e5
BREAKING: Allow ValueObservation to perform different kinds of fetch
...
We're interested in allowing observations to build values based on snapshots
2022-09-04 12:06:17 +02:00
Gwendal Roué
e0786537db
BREAKING: replace Int32 with CInt everywhere it is possible
2022-08-21 21:22:34 +02:00
Gwendal Roué
2011776cbe
Remove misleading comments
2022-08-21 21:22:34 +02:00
Gwendal Roué
a9fcf1b9c1
SE-0335, SE-0341, SE-0346, SE-0352, SE-0358: some, any, primary associated types
2022-08-21 21:22:34 +02:00
Gwendal Roué
6da7d47394
Swift 5.7 required: Remove compiler checks
2022-08-21 19:21:57 +02:00
Gwendal Roué
df0ae43c5f
Swift 5.7 required: Sendable
2022-08-21 19:21:26 +02:00
Gwendal Roué
209192d3a5
Require Swift 5.6 Compiler for Concurrency Support
2022-04-13 23:07:33 +02:00
Gwendal Roué
6ab3fea8fb
Refactor ValueObservation
2022-03-17 18:44:30 +01:00
Gwendal Roué
287ceb8b07
Documentation & cleanup
2022-03-17 18:44:30 +01:00
Gwendal Roué
790c054a28
Fix Swiftlint warnings
2022-01-09 14:43:27 +01:00
Gwendal Roué
37571525e6
Merge branch 'development' into dev/issue-1074-incremental_backup_api
2022-01-06 13:45:26 +01:00
Michael Allman
a71639159b
Add DatabaseBackupProgress and update the documentation
2021-12-15 01:52:25 -05:00
Michael Allman
bedf2dbcd4
Revise and correct some names and backup code documentation
2021-12-08 10:23:11 -08:00
Michael Allman
13e195db40
Revise incremental backup API to report progress via a throwing callback
...
function
2021-12-08 09:37:10 -08:00
Michael Allman
087ad10086
Add an API to track progress of and cancel backups in progress, for both
...
the DatabaseReader/DatabaseWriter API and Database API
2021-12-08 09:37:10 -08:00
Michael Allman
f012c011b1
Import the Foundation framework in DatabaseReader.swift, which is required to get the Progress class
2021-12-08 09:37:10 -08:00
Michael Allman
f829d46b7f
Change default backup page step size from 5 to 100, which is the value used in the sqlite3 cli .backup command
2021-12-08 09:37:10 -08:00
Michael Allman
ab6f18e46d
Initial commit of code to implement progress-reporting database backups
2021-12-08 09:37:10 -08:00
Gwendal Roué
01f4c04c4d
DatabaseReader is Sendable
2021-12-08 18:12:28 +01:00
Gwendal Roué
61b0df8017
Enable async APIs on Xcode 13.2+ only
...
Xcode 13.1 won't have access to async apis. This simplifies our availability checks.
The techniques were inspired from:
- https://github.com/swift-server/guides/blob/main/docs/concurrency-adoption-guidelines.md#api-design
- https://github.com/swift-server/guides/blob/main/docs/concurrency-adoption-guidelines.md#backwards-compatibility-of-declarations-and-checked-swift-concurrency
2021-12-08 11:17:40 +01:00
Gwendal Roué
6ec3ebc398
Merge branch 'development' into dev/async
2021-12-06 18:04:35 +01:00
Gwendal Roué
6240585a03
Make sure ValueObservation fetches in an isolated transaction
...
Previously, ValueObservation could fetch in a non-isolated way. When an external connection would commit changes, we could fetch inconsistent values. Here we make sure ValueObservation always fetch in an isolated way.
2021-12-02 09:46:02 +01:00
Gwendal Roué
1738ad34cd
Extract the Concurrency Guide
2021-11-06 12:23:54 +01:00
Gwendal Roué
15b38353bc
Add experimental warning to the documentation of async methods
2021-10-31 19:35:05 +01:00
Gwendal Roué
1a87faacfa
Merge branch 'development' into dev/async
2021-10-31 18:32:03 +01:00
Gwendal Roué
20cb50f52d
Public close() method
2021-10-31 18:12:13 +01:00
Gwendal Roué
c755dc70ef
Restrict async/await to Xcode 13.1+
2021-10-30 20:09:39 +02:00
Gwendal Roué
0ead20cdd6
All async apis are experimental
2021-10-17 13:26:41 +02:00
Gwendal Roué
2ad6131d08
Require canImport(_Concurrency)
...
This fixes the build for macOS 11.5
2021-10-17 13:26:41 +02:00
Gwendal Roué
1f73c20ae2
DatabaseWriter async methods
...
write, writeWithoutTransaction, barrierWriteWithoutTransaction, erase, vacuum, vacuum(into:)
2021-10-17 13:24:10 +02:00
Gwendal Roué
a827188881
async DatabaseReader.unsafeRead
2021-10-17 13:23:34 +02:00
Gwendal Roué
64be4763f2
async DatabaseReader.read
2021-10-17 13:23:34 +02:00