4162 Commits
Author SHA1 Message Date
Gwendal Roué 98c58f4eef Fix more typos in public documentation 2026-11-02 20:27:37 +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é 1d59d1656b Fix SharedValueObservation 2026-11-01 16:23:38 +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é 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é a0f184ec26 Invalidate Statement column cache after recompilation 2026-11-01 14:21:42 +01:00
Sharath Kumar 3f80cfccf4 Keep SQLite's error message when a database fails to open 2026-10-11 22:33:07 +05:30
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é 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é ac1e5e66be Remove assertion about SQLite snapshot ordering
Fix #1883
2026-09-26 10:20:32 +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
Chris Kolbu 8511cfd399 Document INTEGER PRIMARY KEY in WITHOUT ROWID tables 2026-08-18 19:55:41 +10:00
Chris Kolbu 4373b3a49b Fix failing tests for INTEGER PRIMARY KEY in WITHOUT ROWID tables 2026-08-18 19:55:41 +10:00
latent-9 0a9a55d15f Fix doubled word in doc comment 2026-08-08 15:07:24 +12: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
Markus Sintonen f1d321139f Combine unappliedExecutions into a single loop 2026-06-17 21:06:52 +03:00
Markus Sintonen 7d489358e2 Compare migration identifier from OrderedDictionary key 2026-06-17 20:41:46 +03:00
Markus Sintonen 67530472a5 Use OrderedDictionary for O(1) migration registration 2026-06-17 20:35:58 +03:00
Gwendal Roué fe3b957e5f Add missing Foundation imports 2026-06-10 12:55:39 +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é 47cb0b877b Fix failing test for upsert in a table WITHOUT ROWID
Fixes #1855
2026-03-16 12:10:57 +01:00
Gwendal Roué 21b1322e05 Fix Swiftlint warnings 2026-02-15 15:09:40 +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
Marc Prud'hommeaux 14567635e4 Android and Windows platform import/conditional accommodation 2026-02-03 17:56:04 -05:00
Marc Prud'hommeaux c8f0328413 Add Sendable conformance to DispatchQueueExecutor for Android and Windows 2026-02-03 10:44:33 +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
bellebethcooper 67ebcb325c Minor typo in doc comments 2026-02-03 16:32:37 +11:00
Gwendal Roué a3036feb48 Merge branch 'development' into sqlcipher-spm-upstream 2026-02-01 15:11:22 +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
Micah Moore bd954c6791 Removes GRDBSQLCipher import from SQLCipher conditional import in Database.swift to allow SQLCipher forkers versatility for defining pass-throughs to GRDB required sqlite variadic functions. 2026-01-19 13:37:41 -05:00
Micah Moore 2f94eb307a Adds Foundation import to Database+SQLCipher 2026-01-16 14:59:25 -05: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é bc5dd31366 Fix Swiftlint warnings 2025-12-30 10:31:13 +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