100 Commits
Author SHA1 Message Date
Gwendal Roué 98c58f4eef Fix more typos in public documentation 2026-11-02 20:27:37 +01:00
Gwendal Roué bd7031ec9b Fix typos in the demo app 2026-11-01 21:04:16 +01:00
Gwendal Roué 909f7455e6 Fix more typos in public documentation 2026-11-01 21:01:03 +01:00
Gwendal Roué 5d9e853f24 Fix typos in code samples 2026-11-01 20:45:05 +01:00
Gwendal Roué 7a216d7d34 Fix typos in public documentation 2026-11-01 20:45:05 +01:00
Gwendal Roué 92a554cd0d Merge branch 'development' 2026-11-01 18:24:21 +01:00
Gwendal Roué 47c8497269 v7.12.0 2026-11-01 17:03:56 +01:00
Gwendal Roué d99e639c11 Merge pull request #1894 from groue/dev/issue-1888
Fix SharedValueObservation deadlock, ordering, and cancellation
2026-11-01 16:51:47 +01:00
Gwendal Roué 1d59d1656b Fix SharedValueObservation 2026-11-01 16:23:38 +01:00
Gwendal Roué 5fe300b733 More failing SharedValueObservation tests 2026-11-01 16:00:41 +01:00
Gwendal Roué b7b747c5bb Merge pull request #1889 from builtbysharath/open-error-message
Keep SQLite's error message when a database fails to open
2026-11-01 14:55:17 +01:00
Gwendal Roué 62f4bfe5f3 Merge pull request #1893 from groue/dev/support-statement-recompilation
Dev/support statement recompilation
2026-11-01 14:54:23 +01:00
Gwendal Roué 9601d6ac9b Row fetched from a statement do not cache statement column in order to support statement recompilation 2026-11-01 14:22:32 +01:00
Gwendal Roué dc101b2847 Failing test for the Row column cache of a recompiled statement 2026-11-01 14:21:42 +01:00
Gwendal Roué a0f184ec26 Invalidate Statement column cache after recompilation 2026-11-01 14:21:42 +01:00
Gwendal Roué b983df96e2 Failing test for SQLRequest on a recompiled statement 2026-11-01 14:21:42 +01:00
Gwendal Roué 94fa864eb7 Failing test for the column cache of a recompiled statement 2026-11-01 13:57:06 +01: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é 8e24aec8f2 Merge pull request #1885 from groue/dev/string-with-nul-character
Add support for Strings that contain the NUL character
2026-09-26 22:22:30 +02:00
Gwendal Roué de0ce29d73 Encode strings with a NUL character
Inspired from #1880 by @nesevis
2026-09-26 16:34:14 +02:00
Gwendal Roué 9858de3249 Decode strings with a NUL character
Inspired from #1880 by @nesevis
2026-09-26 16:34:14 +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
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é 533286eab0 Merge pull request #1884 from groue/dev/fix-1883
Work around an SQLite bug in WAL snapshot ordering
2026-09-26 10:37:32 +02:00
Gwendal Roué ac1e5e66be Remove assertion about SQLite snapshot ordering
Fix #1883
2026-09-26 10:20:32 +02:00
Gwendal Roué 6bf7ba8f03 Merge pull request #1881 from groue/dev/fix-1873
Fix an accidentally quadratic behavior in SQLite statement compilation
2026-09-23 19:09:50 +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
Gwendal Roué 0d8cf958b4 Merge pull request #1876 from latent-9/docs/fix-doubled-word
Fix doubled word in doc comment
2026-08-08 10:56:30 +02:00
Gwendal Roué b83108d10f Merge branch 'development' 2026-06-18 14:07:07 +02:00
Gwendal Roué 468b8e81be v7.11.1 2026-06-18 14:06:56 +02:00
Gwendal Roué a3a29aa921 Merge pull request #1869 from MarkusSintonen/optimize-register-migration
Optimize migration registration to be O(n) instead of O(n^2)
2026-06-18 08:19:57 +02:00
Gwendal Roué fe3b957e5f Add missing Foundation imports 2026-06-10 12:55:39 +02:00
Gwendal Roué f1eb48b0cf Fix a warning in Version 27.0 beta 2026-06-10 12:53:47 +02:00
Gwendal Roué 9ed8c8457e Merge branch 'development' 2026-06-01 08:06:44 +02:00
Gwendal Roué 656d1f4539 v7.11.0 2026-06-01 08:06:35 +02:00
Gwendal Roué cc85b3d82d Disable GRDBCustom on GitHub CI
The tests pass on my machine, but not on CI: https://github.com/groue/GRDB.swift/actions/runs/26725623508/job/78792729917
2026-06-01 07:51:40 +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é b49e990bdd Merge pull request #1864 from simolus3/development
Add `observe(statement:)` to `TransactionObserver`
2026-05-31 14:38:10 +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
Gwendal Roué cdc2fb4200 Merge pull request #1858 from groue/dev/issue-1855
Fix upsert for WITHOUT ROWID tables
2026-03-19 08:07:22 +01:00
Gwendal Roué 47cb0b877b Fix failing test for upsert in a table WITHOUT ROWID
Fixes #1855
2026-03-16 12:10:57 +01: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é 36e30a6f1e Merge branch 'development' 2026-02-15 15:10:35 +01:00
Gwendal Roué 368514c33b v7.10.0 2026-02-15 15:09:40 +01:00
Gwendal Roué 21b1322e05 Fix Swiftlint warnings 2026-02-15 15:09:40 +01:00
Gwendal Roué 819f4572df Merge pull request #1852 from groue/dev/upsert-strategy
Configure whether UPSERT should update all columns, or no column.
2026-02-15 14:10:32 +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
Gwendal Roué 7f9d1503a0 Merge pull request #1850 from swift-everywhere/platform-fixes
Android and Windows platform import/conditional accommodation
2026-02-04 08:38:48 +01:00
Gwendal Roué 205387d2d2 Merge pull request #1849 from marcprux/patch-1
Add Sendable conformance to DispatchQueueExecutor for Android and Windows
2026-02-03 11:32:13 +01:00
Gwendal Roué e784b10314 Merge pull request #1845 from R4N/sqlcipher-spm-upstream
SQLCipher organizational/import adjustments
2026-02-03 08:19:11 +01:00
Gwendal Roué 34fa177a47 Merge pull request #1848 from groue/bellebethcooper-typo-fix
Minor typo in doc comments
2026-02-03 08:13:35 +01:00
Gwendal Roué a3036feb48 Merge branch 'development' into sqlcipher-spm-upstream 2026-02-01 15:11:22 +01:00
Gwendal Roué 14d4c842e4 Document how to enable SQLCipher with SPM 2026-02-01 14:48:50 +01:00
Gwendal Roué 79276d7f68 Prepare support for SPM+SQLCipher 2026-02-01 14:43:24 +01:00
Gwendal Roué 14fdba1ef3 Rename CipherXxx APIs to SQLCipherXxx when possible 2026-02-01 14:43:24 +01:00
Gwendal Roué 8b5017714f Support more SQLCipher log destinations 2026-02-01 14:43:24 +01:00
Gwendal Roué a1a9c3aefe Make links appear as links in DocC 2026-02-01 12:37:49 +01:00
Gwendal Roué d664db9610 Enhance documentation formatting 2026-02-01 12:37:49 +01:00
Gwendal Roué 2c4492a098 Do not define CipherLogLevel as a frozen enum 2026-02-01 12:37:49 +01:00
Gwendal Roué c0ef0e0f99 Use the same logic for importing SQLCipher as in other files 2026-02-01 11:19:30 +01:00
Gwendal Roué 81a699cae9 Merge branch 'grdb_linux_changes' into development 2026-02-01 11:00:35 +01:00
Gwendal Roué 51083da42d Merge pull request #1846 from leejungyeob/fix-usage-example-typo
Fix typo in usage examples
2026-01-16 13:18:54 +01:00
Gwendal Roué ccfe3149d7 Merge pull request #1842 from Cykelero/fix-usage-example-typos
Fix typos in usage examples
2026-01-09 16:30:58 +01:00
Gwendal Roué 129e53d54e Remove obsolete TODOs 2025-12-30 13:00:56 +01:00
Gwendal Roué bc5dd31366 Fix Swiftlint warnings 2025-12-30 10:31:13 +01:00
Gwendal Roué aa0079aeb8 Merge branch 'development' 2025-12-13 12:11:32 +01:00
Gwendal Roué 74ef238376 v7.9.0 2025-12-13 12:05:31 +01:00
Gwendal Roué 9d7a487971 Merge pull request #1839 from groue/dev/issue-1838
Fix cancellation of async tasks that use the FTS5 full-text engine.
2025-12-10 16:11:32 +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é 3ee256e7e8 Common API for statements that must ignore interruption errors 2025-12-09 21:39:20 +01:00
Gwendal Roué 361599aacd Task cancellation should turn all SQLITE_INTERRUPT errors into CancellationError, including errors thrown by statement compilation
I did not know statement compilation could fail when database is interrupted until #1838. A ROLLBACK statement would not even compile due to the FTS5 statement leak reported in https://sqlite.org/forum/forumpost/137c7662b389fa18
2025-12-09 21:38:15 +01:00
Gwendal Roué 64a024097d Fix failing test for #1838 by reseting all prepared statements before retrying 2025-12-08 21:40:48 +01:00
Gwendal Roué 60ea10948b Protect PRAGMA query_only = 0 against SQLITE_INTERRUPT
This should fix a race condition about cancellation that happens during a read-only access.
2025-12-08 21:22:43 +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é 24fa06d646 Merge branch 'master' into development 2025-12-08 09:51:07 +01:00
Gwendal Roué fd788900b6 Revert "Add link to our beloved sponsor Base"
This reverts commit 827ab62bb6.
2025-12-08 09:50:02 +01:00
Gwendal Roué b31be05ee3 Do not use traits, since they are not supported by Xcode
This pull request fixes #1826, which broke `make test_GRDBDemo` with Xcode 26.0.1.

To reproduce the failure:

- Remove from ~/Library/Developer/Xcode/DerivedData all previous builds of GRDB and related stuff
- Run `make distclean test_GRDBDemo`

We expect a success, but it fails with error "Unable to find module dependency: 'GRDBSQLite'".
2025-10-27 13:37:21 +01:00
Gwendal Roué a60810f28e Merge pull request #1819 from groue/dev/SQLCipher-cleanup
Accept multiple SQLCipher libraries
2025-10-12 15:46:52 +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é 48a17ce490 Merge pull request #1826 from groue/dev/snapshot-cleanup
Simplify the compiler checks for the availability of SQLite snapshots
2025-10-12 14:27:06 +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é 17e1683b66 Bump CI to macOS 15 and Xcode 16.4 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é d06c9ed6b5 Enable SQLITE_ENABLE_SNAPSHOT in the Xcode GRDB framework 2025-10-04 14:15:13 +02:00
Gwendal Roué 9a98ed6292 Enable SQLITE_ENABLE_SNAPSHOT in the GRDBSQLite trait, on Darwin platforms 2025-10-04 14:15:13 +02:00
Gwendal Roué 5cc85a98f3 Only depend on GRDBSQLite when the default GRDBSQLite trait is active. 2025-10-04 13:53:38 +02:00
Gwendal Roué edc1d646f0 [BREAKING] Bump minimum Swift version to 6.1 2025-10-04 13:53:38 +02:00
Gwendal Roué ab09078842 Fix failing test for merged migration that merges itself 2025-10-03 09:36:22 +02:00
Gwendal Roué 267e1ea5a6 Add failing test for merged migration that merges itself 2025-10-03 09:34:26 +02:00
Gwendal Roué 18497b68fd Merge branch 'development' 2025-10-02 08:11:07 +02:00