Gwendal Roué
ac2f2e8643
Test that we recover from the FTS5 bug
2025-12-10 13:38:25 +01:00
Gwendal Roué
e281149a2d
Simplify Issue1838Tests
...
... and add it to test targets
2025-12-10 13:28:04 +01:00
Gwendal Roué
5dba64d545
Retry a rollback in case of SQLITE_INTERRUPT error
...
This should fix a race condition about cancellation that happens during a rollback
2025-12-08 21:11:26 +01:00
Gwendal Roué
2212a17950
Failing test for #1838
2025-12-08 15:13:28 +01:00
Gwendal Roué
c35095c6da
Enable more tests
2025-10-12 14:58:06 +02:00
Gwendal Roué
f878d99733
Use SQLITE_HAS_CODEC instead of GRDBCIPHER when testing for SQLCipher availability
...
GRDBCIPHER is now just a marker for importing SQLCipher with CocoaPods.
Also, enable all APIs that used to be disabled with SQLCipher, and skip tests that require a specific SQLite version.
2025-10-12 14:49:59 +02:00
Gwendal Roué
361a482b1e
Enable SQLITE_ENABLE_SNAPSHOT by default and introduce SQLITE_DISABLE_SNAPSHOT
2025-10-12 14:03:09 +02:00
Gwendal Roué
8cba324d6e
Refactor the SQLite import
...
We can not use `#if Trait` because Xcode does not enable those compiler flags. Always count on Apple for delivering the best quality software.
So now we import the default SPM SQLite last, after all other cases have been excluded.
The GRDB framework (GRDB.xcodeproj and GRDB via CocoaPods) is distinct from the default SPM trait, so we detect it with GRDBFRAMEWORK.
2025-10-04 17:56:06 +02:00
Gwendal Roué
b1b83abd8b
Simplify the compiler checks for the availability of SQLite snapshots
2025-10-04 14:15:13 +02:00
Gwendal Roué
edc1d646f0
[BREAKING] Bump minimum Swift version to 6.1
2025-10-04 13:53:38 +02:00
Gwendal Roué
267e1ea5a6
Add failing test for merged migration that merges itself
2025-10-03 09:34:26 +02:00
Gwendal Roué
85ad232b0b
Support for migrations that merge previous migrations
2025-10-01 17:24:00 +02:00
Gwendal Roué
50a74f7b03
Cleanup
2025-09-29 19:43:41 +02:00
Gwendal Roué
62fdd41d75
Failing regression test for #1820
2025-09-29 19:34:15 +02:00
Gwendal Roué
9ef5e2c8eb
Simplify error messages
2025-09-23 17:12:27 +02:00
Gwendal Roué
b210ec7428
View Records guide
2025-09-23 17:12:27 +02:00
Gwendal Roué
a7e3acf409
Remove TODO warnings
2025-09-23 17:12:27 +02:00
Gwendal Roué
ca27f75760
Test the stable order of views with a primary key
2025-09-23 17:12:27 +02:00
Gwendal Roué
99ecf76a77
Support primary key when testing the existence of an association to a view
2025-09-23 17:12:27 +02:00
Gwendal Roué
f4991273c2
DatabaseSchemaSource tests
2025-09-23 17:12:27 +02:00
Gwendal Roué
37dde39557
Public Database.schemaSource and withSchemaSource(_:execute:)
2025-09-23 17:12:27 +02:00
Gwendal Roué
5786391dc9
RecordMappedOnMutableViewTests
2025-09-23 17:12:27 +02:00
Gwendal Roué
e1abafaae3
Ignore schema source during migrations
2025-09-23 17:12:27 +02:00
Gwendal Roué
75e99861af
Update TableRecordUpdateTests with record types based on database views
2025-09-23 17:12:27 +02:00
Gwendal Roué
2e433a3cb2
Update TableRecordDeleteTests with record types based on database views
2025-09-23 17:12:27 +02:00
Gwendal Roué
9518d74fa6
Improve error message
2025-09-23 17:12:27 +02:00
Gwendal Roué
38f5226e95
Database.table(_:hasUniqueKey:) now accept views
2025-09-23 17:12:27 +02:00
Gwendal Roué
2b19803644
DatabaseSchemaSource tests
2025-09-23 17:12:27 +02:00
Gwendal Roué
f3acfecc16
DatabaseCollation no longer uses a deprecated String initializer
2025-09-13 12:21:36 +02:00
Gwendal Roué
cd84db3873
Xcode 26 upgrade
2025-09-10 07:12:52 +02:00
Gwendal Roué
37065fb503
Regression test for #1797
2025-08-19 08:05:07 +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é
24e0f5ddeb
Make throwing row accessors 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é
7a1e65b142
Remove late cancellation checks
...
I'm slowly changing my mind about this.
2025-07-19 15:27:08 +02:00
Gwendal Roué
b24fb76610
Failing test for task locals with DatabaseWriter ( #1793 )
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é
01cd49b4ec
Failing test for task locals ( #1793 )
2025-07-19 14:25:50 +02:00
Gwendal Roué
034b241e71
Rename ColumnsProvider to DatabaseComponents
2025-05-11 13:10:19 +02:00
Gwendal Roué
2316fb3831
Prefer key paths when possible
2025-05-11 11:12:19 +02:00
Gwendal Roué
98e2812089
Convenience api for updating a single column
2025-05-11 10:58:09 +02:00
Gwendal Roué
5c9b772e65
Test CommonTableExpression aliases on Swift 6.1
2025-05-10 16:37:44 +02:00
Gwendal Roué
5461caff04
Tests for generic TableAlias
2025-05-10 14:52:48 +02:00
Gwendal Roué
503fb09270
Test that aggregate can be expressed with key-paths in Swift 6.1
2025-05-10 09:36:14 +02:00
Gwendal Roué
190ccda727
Rename deleteAndFetchStatement(_:select:) for consistency
2025-05-10 09:36:14 +02:00
Gwendal Roué
7b2e9d838a
Swift 6.1 compiler: test key-path requests.
2025-05-10 09:36:14 +02:00
Gwendal Roué
6b0faede2a
Use closure syntax for insertAndFetch
2025-05-10 09:36:14 +02:00
Gwendal Roué
ed402d5de6
Use closure syntax for batch updates
2025-05-10 09:36:14 +02:00
Gwendal Roué
35fa28ab90
QueryInterfaceRequest.select(_:as:) with ColumnsProvider
2025-05-10 09:36:14 +02:00