Gwendal Roué
9a9406a69d
SE-0353: Constrained Existential Types
...
https://github.com/apple/swift-evolution/blob/main/proposals/0353-constrained-existential-types.md
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é
6f0d45eedb
BREAKING: throwing DatabaseWriter.barrierWriteWithoutTransaction
...
It used to be rethrowing, but it was then unable to deal with closed databases.
The async version is modified accordingly: it accepts a Result<Database, Error>, instead of a raw Database.
DatabaseMigrator.asyncMigrate is impacted as well: it accepts a Result<Database, Error>, instead of a (Database, Error?) tuple.
2022-08-21 19:21:57 +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é
ed4471c5b9
Configuration.writeTargetQueue
2022-01-29 17:45:21 +01:00
Gwendal Roué
09922c34ff
Code formatting
2022-01-23 12:24:34 +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é
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é
8754b10a40
Documentation of DatabaseWriter async methods
2021-10-17 13:24:10 +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é
6d44c05f3b
DatabasePool.erase() prevents concurrent reads until it has completed
2021-10-13 14:46:47 +02:00
Gwendal Roué
ba88a150c0
Improve inline doc of database access methods
2021-10-11 15:50:06 +02:00
Zev Eisenberg
8b060e6b09
Add angle brackets to URLs to make them clickable in Xcode's rendered documentation.
2021-07-20 20:53:58 -04:00
Gwendal Roué
6cc45202a0
Enable vacuum(into:) with SQLCipher
2021-07-20 20:02:18 +02:00
Gwendal Roué
c115b6a92d
Explain why vacuum(into:) is not available on DatabaseReader
2021-07-20 19:31:22 +02:00
Thaddeus Ternes
dc40da1ef2
Improvements based on PR feedback
2021-07-19 21:59:43 -05:00
Thaddeus Ternes
7d0c8c6657
Refactor tests, fix inline documentation parameter value
2021-07-12 02:28:49 -05:00
Thaddeus Ternes
ed9fb39982
Add inline documentation
2021-07-12 01:26:34 -05:00
Thaddeus Ternes
b28f75c5a2
Add VACUUM INTO support to DatabaseWriter
2021-07-12 01:19:45 -05:00
Gwendal Roué
c9c652dddc
DatabaseMigrator async migrations
2021-03-20 13:25:43 +01:00
Gwendal Roué
836efb120f
Xcode 12.3 formatting
2020-12-23 12:13:05 +01: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é
07092169bf
Documentation
2020-07-12 14:17:58 +02:00
Gwendal Roué
90e7449d6a
Documentation
2020-07-11 19:21:33 +02:00
Gwendal Roué
a0ce362197
Combine publishers
2020-06-25 19:25:29 +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
Gwendal Roué
780ba744f1
Database.description
2020-06-03 19:37:24 +02:00
Gwendal Roué
f27d6b07c0
Cleanup
2020-04-11 20:45:00 +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é
469814985e
Decrease nesting
2020-03-27 19:55:36 +01:00