Gwendal Roué
c48bd6efbe
TO REMOVE: raise deployment targets
2026-09-29 08:16:27 +02:00
Gwendal Roué
6f64c72209
Merge pull request #1879 from nesevis/fix/rowid-and-single-integer-primary-key
...
Fix upsert for WITHOUT ROWID tables with an INTEGER primary key
2026-09-27 09:12:49 +02:00
Gwendal Roué
fe774b3537
Performance tests for String as a statement argument
2026-09-26 13:03:16 +02:00
Gwendal Roué
550ef55c90
Fast path for String performance decoding test
2026-09-26 12:43:38 +02:00
Gwendal Roué
e37c7cf306
Do not measure database access acquisition and Array building
2026-09-26 12:37:11 +02:00
Gwendal Roué
1ff66c8382
Test independance
2026-09-26 12:36:33 +02:00
Chris Kolbu
8957148d4d
Performance tests for string fetching and function results
2026-09-26 12:34:37 +02:00
Gwendal Roué
23083c4668
Failing tests for strings with a NUL character used as statement argument
...
Inspired from #1880 by @nesevis
2026-09-26 12:06:49 +02:00
Gwendal Roué
dfa942e9c0
Failing tests for decoding and encoding strings with a NUL character
...
Inspired from #1880 by @nesevis
2026-09-26 12:06:43 +02:00
Gwendal Roué
5d31cba4a0
Failing tests for database functions returning or accepting strings with a NUL character
...
Inspired from #1880 by @nesevis
2026-09-26 12:06:36 +02:00
Gwendal Roué
9f2e3b7d6b
Optimize statement authorizer region accumulation
...
This commit is inspired by #1873 from @guidedways, who detected an unexpectedly quadratic behavior in the way we build database regions from the statement authorizer
2026-09-23 14:16:22 +02:00
Gwendal Roué
c08767b500
Fix stale test
...
The test was checking for the presence of an SQLite bug. This bug is gone in macOS 27.0.
2026-09-15 14:36:27 +02:00
Chris Kolbu
d4713c1fa8
Failing tests for INTEGER PRIMARY KEY in WITHOUT ROWID tables
2026-08-18 19:55:41 +10:00
Gwendal Roué
f1eb48b0cf
Fix a warning in Version 27.0 beta
2026-06-10 12:53:47 +02:00
Gwendal Roué
97f517a660
Use Xcode folders
...
... except in projects that use CocoaPods, because well the new Xcode project format is not supporteed
2026-05-31 23:57:01 +02:00
Gwendal Roué
27c7bda0e9
Refactor with DatabaseEventObservationStrategy
...
The issue with `observesAllDatabaseChanges` is that this was a misleading name: transaction observers are not notified of changes that are performed in a save point that is eventually rollbacked.
By exposing the DatabaseEventObservationStrategy type, we allow for a future extra flag that ignores save points, trading observation precision for a reduced memory footprint.
2026-05-31 14:04:10 +02:00
Simon Binder
253cdfec8c
Review feedback
2026-05-11 20:47:20 +02:00
Simon Binder
e934c428b4
Add observe(statement:) to TransactionObserver
2026-05-05 22:06:06 +02:00
Gwendal Roué
c637e04133
Failing test for upsert in a table WITHOUT ROWID
...
Failing test for #1855
2026-03-16 12:10:57 +01:00
Gwendal Roué
7b01c9b72b
Let the user choose between the two possible update strategies for upsert
2026-02-15 13:40:05 +01:00
Marc Prud'hommeaux
14567635e4
Android and Windows platform import/conditional accommodation
2026-02-03 17:56:04 -05:00
Gwendal Roué
a3036feb48
Merge branch 'development' into sqlcipher-spm-upstream
2026-02-01 15:11:22 +01:00
Gwendal Roué
8b5017714f
Support more SQLCipher log destinations
2026-02-01 14:43:24 +01:00
Gwendal Roué
81a699cae9
Merge branch 'grdb_linux_changes' into development
2026-02-01 11:00:35 +01:00
Micah Moore
c24bf5d118
SQLCipher adjustments to support forks which want to enable SQLCipher using traits/swiftSettings
...
- Adds Database+SQLCipher extension with SQLCipher operations, enabled by #if SQLITE_HAS_CODEC
- Adjusts Import Statements to import SQLCipher when SQLCipher trait is enabled (or SQLCipher swiftSetting is set)
2026-01-14 11:32:48 -05:00
Gwendal Roué
129e53d54e
Remove obsolete TODOs
2025-12-30 13:00:56 +01:00
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
Tim De Jong
d7cf0f9e59
NSError bridging is not available, or doesn't work the same on non-Darwin platforms. Skip testNSErrorBridging on these platforms.
2025-10-12 18:03:57 +02:00
Tim De Jong
389c3e0d4a
Use #if !canImport(Combine) per test case (as done by @marcprux) and throw an XCTSkip for these test cases. This gives a better impression how many tests are skipped on Linux/non-Darwin platforms.
2025-10-12 18:03:57 +02:00
Tim De Jong
a212bf9e89
It should be canImport(Darwin) not os(Darwin)
2025-10-12 18:03:57 +02:00
Tim De Jong
65186104cc
Integrated upstream changes.
...
Some tests depend on Combine which is not available on non-Darwin platforms. Fix this.
2025-10-12 18:03:57 +02:00
Tim De Jong
2f108508fa
Fixed DatabaseSnapshotTests on non-darwin platforms
2025-10-12 18:03:57 +02:00
Tim De Jong
5513eab099
Fixed the tests in DatabaseQueueTests.swift
2025-10-12 18:03:57 +02:00
Tim De Jong
2ad2d20a89
Fixed the unit tests in DatabasePoolConcurrencyTests.
2025-10-12 18:03:57 +02:00
Tim De Jong
dd90fe6e62
Ignore ValueObservationRecorderTests.swift on non-Darwin platforms.
2025-10-12 18:03:57 +02:00
Tim De Jong
691207567a
Ignore FailureTestCase.swift entirely on non-Darwin platforms for now.
2025-10-12 18:03:57 +02:00
Tim De Jong
c7f1dd7470
Fixed import in CGFloatTests.swift to work under non-Darwin platforms.
2025-10-12 18:03:57 +02: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