Gwendal Roué
cd84db3873
Xcode 26 upgrade
2025-09-10 07:12:52 +02:00
Gwendal Roué
4cfa692ddd
Fix race condition regarding Task cancellation
...
This complements #1797 by making sure read-only transactions complete correctly, even if the task is cancelled.
2025-09-10 07:12:11 +02:00
Gwendal Roué
8dfbbb50f6
TODO
2025-09-10 06:51:14 +02:00
Gwendal Roué
3f69614405
DatabaseFunction with raw xFunc
...
No use right now, but I was really bugged that we could not use raw sqlite3_result_xxx methods from custom functions.
2025-09-02 08:09:16 +02:00
Gwendal Roué
b4f3a83755
Remove SwiftLint warning
...
If we don't have warnings about explicit nil initialization, then we have a warning about the name of a disabled rule which is now deprecated. In all cases, we have a warning.
So let's just write 2025 Swift, ignore that rule, and call it a day.
2025-09-02 08:07:16 +02:00
Gwendal Roué
7cd2a4563c
Merge pull request #1807 from emmanuel-ferdman/development
...
Update `GRDB7MigrationGuide.md` reference
2025-08-31 13:52:09 +02:00
Emmanuel Ferdman
2698c55654
Update GRDB7MigrationGuide.md reference
...
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com >
2025-08-30 09:58:59 -07:00
Gwendal Roué
37065fb503
Regression test for #1797
2025-08-19 08:05:07 +02:00
Gwendal Roué
3801ab9ac6
Fix Base image link
2025-08-19 08:04:41 +02:00
Gwendal Roué
26abd8ad79
Merge branch 'dev/sponsor-base'
2025-08-18 17:52:58 +02:00
Gwendal Roué
827ab62bb6
Add link to our beloved sponsor Base
2025-08-18 17:39:03 +02:00
Gwendal Roué
8ba1bc9a96
Merge branch 'development'
v7.6.1
2025-07-23 13:27:07 +02:00
Gwendal Roué
c4e39285a0
v7.6.1
2025-07-23 13:27:01 +02:00
Gwendal Roué
1622b72b62
Merge pull request #1797 from groue/dev/cancellation-fix
...
Fix race condition regarding Task cancellation
2025-07-23 13:24:52 +02:00
Gwendal Roué
215128390d
Fix race condition: prevent cancellation from cancelling other database accesses after database accesses has completed
...
Before this change, cancelling a database access could cancel *another* database access 😱
2025-07-23 12:01:58 +02:00
Gwendal Roué
c5283a0bd9
Warn against the incompatibility between custom SQLite builds and SPM
...
Addresses https://github.com/groue/GRDB.swift/issues/1709#issuecomment-3100503200
2025-07-22 07:47:41 +02:00
Gwendal Roué
fb68849bfb
Merge branch 'development'
v7.6.0
2025-07-20 18:11:22 +02:00
Gwendal Roué
c2bddde88a
v7.6.0
2025-07-20 17:21:28 +02:00
Gwendal Roué
b4a21d63b2
Merge pull request #1796 from groue/dev/public-RowDecodingError
...
Throwing row accessors
2025-07-20 17:13:49 +02:00
Gwendal Roué
6ca38eda3b
Give TableAliasBase a location in DocC
2025-07-20 14:38:15 +02:00
Gwendal Roué
d76922fe1a
Document throwing accessors for records and record collections
2025-07-20 14:38:15 +02:00
Gwendal Roué
a46f3b69e9
Document throwing row accessors
2025-07-20 14:38:15 +02:00
Gwendal Roué
b572982e34
Document RowDecodingError
2025-07-20 13:11:42 +02:00
Gwendal Roué
5a8b025ee8
TODO: test throwing row accessors of record collections and sets
2025-07-20 13:00:12 +02:00
Gwendal Roué
9a1914a813
Test throwing record row accessors
2025-07-20 13:00:12 +02:00
Gwendal Roué
4a92263c5e
Test throwing column row accessors
2025-07-20 13:00:12 +02:00
Gwendal Roué
f72d0cecb2
Document throwing row accessors
2025-07-20 13:00:12 +02:00
Gwendal Roué
24e0f5ddeb
Make throwing row accessors public
2025-07-20 13:00:12 +02:00
Gwendal Roué
2b1b56ea47
Make RowDecodingError public
2025-07-20 13:00:12 +02:00
Gwendal Roué
ad704c58e5
Hide implementation of RowDecodingError
...
Turn the enum into a struct so that it can be made public without exposing internal details
2025-07-20 13:00:12 +02:00
Gwendal Roué
3f928bcf9c
Merge pull request #1794 from groue/dev/actor-access
...
Access task locals from asynchronous database accesses
2025-07-19 17:15:25 +02:00
Gwendal Roué
c91c183354
Async database accesses are no longer escaping and no longer need to capture self
2025-07-19 16:42:17 +02:00
Gwendal Roué
c666393e63
AppDatabase can be a struct, so let it be a struct
2025-07-19 16:42:17 +02:00
Gwendal Roué
d242421862
Async methods accept a non-escaping closure
2025-07-19 16:42:17 +02:00
Gwendal Roué
7a1e65b142
Remove late cancellation checks
...
I'm slowly changing my mind about this.
2025-07-19 15:27:08 +02:00
Gwendal Roué
fb4578a7d6
Delete unused code
2025-07-19 15:26:46 +02:00
Gwendal Roué
6069e6d683
DatabasePool.barrierWriteWithoutTransaction can access task locals
2025-07-19 15:26:44 +02:00
Gwendal Roué
a703da9b27
Async version of Pool.barrier { ... }
2025-07-19 14:25:50 +02:00
Gwendal Roué
684266b7b8
DispatchQueueActor supports barriers in concurrent DispatchQueue
2025-07-19 14:25:50 +02:00
Gwendal Roué
b24fb76610
Failing test for task locals with DatabaseWriter ( #1793 )
2025-07-19 14:25:50 +02:00
Gwendal Roué
cbbd0cb945
Add asserts about expected ends of transaction
2025-07-19 14:25:50 +02:00
Gwendal Roué
dd4227303a
DatabasePool unsafeRead can access task locals
2025-07-19 14:25:50 +02:00
Gwendal Roué
69b786dc9e
Allow COMMIT from a cancelled read-only access.
2025-07-19 14:25:50 +02:00
Gwendal Roué
9dd8b2cef7
Add failing test for task locals access from unsafeRead ( #1793 )
2025-07-19 14:25:50 +02:00
Gwendal Roué
c5ac6cdaa6
DatabaseSnapshotPool reads can access task locals
2025-07-19 14:25:50 +02:00
Gwendal Roué
e154a652dc
Don't check for reentrancy from async Pool.read
...
One can't call an async function from a database access anywau
2025-07-19 14:25:50 +02:00
Gwendal Roué
41d4f23a83
DatabasePool reads can access task locals
2025-07-19 14:25:50 +02:00
Gwendal Roué
27b7400979
Async version of Pool.get()
2025-07-19 14:25:50 +02:00
Gwendal Roué
e6847886db
Extract DispatchQueueActor
...
We'll probably need it in order to access pool elements with support for task locals
2025-07-19 14:25:50 +02:00
Gwendal Roué
c064515247
DatabaseQueue and DatabaseSnapshot reads can access task locals
2025-07-19 14:25:50 +02:00