Gwendal Roué
3777ba0df2
Generic connection WIP
2025-11-12 18:04:31 +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'
v7.8.0
2025-10-02 08:11:07 +02:00
Gwendal Roué
19e33e2e7d
v7.8.0
2025-10-02 08:10:52 +02:00
Gwendal Roué
76e0815907
Merge pull request #1818 from groue/dev/obsolete-migrations
...
Merged Migrations
2025-10-02 08:06:24 +02:00
Gwendal Roué
85ad232b0b
Support for migrations that merge previous migrations
2025-10-01 17:24:00 +02:00
Gwendal Roué
db695cf7dc
Merge branch 'development'
v7.7.1
2025-09-29 21:14:01 +02:00
Gwendal Roué
76a7be8404
v7.7.1
2025-09-29 20:29:44 +02:00
Gwendal Roué
196c33ba63
Merge pull request #1822 from groue/dev/issue-1820
...
Fix the save() method for record types with attached triggers
2025-09-29 20:26:12 +02:00
Gwendal Roué
50a74f7b03
Cleanup
2025-09-29 19:43:41 +02:00
Gwendal Roué
3f27fb9289
Fix #1820
...
The regression was introduced by c7bbebc
2025-09-29 19:35:00 +02:00
Gwendal Roué
62fdd41d75
Failing regression test for #1820
2025-09-29 19:34:15 +02:00
Gwendal Roué
c5d02eac32
Merge branch 'development'
v7.7.0
2025-09-23 20:14:27 +02:00
Gwendal Roué
d1bfce829b
v7.7.0
2025-09-23 19:30:13 +02:00
Gwendal Roué
edd292bcbd
CHANGELOG
2025-09-23 17:44:05 +02:00
Gwendal Roué
a0e101e683
Merge pull request #1810 from groue/dev/persistable-views
...
Persistable Database Views
2025-09-23 17:38:30 +02:00
Gwendal Roué
9ef5e2c8eb
Simplify error messages
2025-09-23 17:12:27 +02:00
Gwendal Roué
f5dc68fc6f
Fix typos
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é
1b98a964d7
Documentation
2025-09-23 17:12:27 +02:00
Gwendal Roué
1095d21abd
Default implementation for schema source chaining.
...
When GRDB eventually adds methods to the DatabaseSchemaSource protocol, our chained schema source will implement chaining on those new methods.
When users write their own custom chaining schema source, the compiler will not tell them that they have to chain the new methods when they upgrade GRDB. The built-in (and correct) implementation of chaining helps avoiding this scenario.
2025-09-23 17:12:27 +02:00
Gwendal Roué
eb2378a741
DatabaseSchemaSource documentation
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é
93d0baeade
The stable order for views is provided by the schemaSource, if any
2025-09-23 17:12:27 +02:00
Gwendal Roué
26ebd7e147
Update outdated comments
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é
c7bbebc80f
Change the way we count changes in order to support INSTEAD OF triggers
...
Database.changesCount calls sqlite3_changes(), whose documentation says:
> https://sqlite.org/c3ref/changes.html
> Changes to a view that are intercepted by INSTEAD OF triggers are not counted.
Since we want to support INSTEAD OF triggers well, so that record types can be based on views, we switch to sqlite3_total_changes().
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