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é
945f398c92
Fix Sendable warnings in tests
2024-09-08 18:00:37 +02:00
Gwendal Roué
0e6ffeb2d5
Merge branch 'master' into GRDB7
2024-09-08 11:37:48 +02:00
Gwendal Roué
cdb181d9ca
Don't invoke sqlite3_db_release_memory on closed database connections
2024-09-04 09:21:30 +02:00
Gwendal Roué
5333dbeff1
LogErrorFunction is Sendable
2024-08-25 16:26:38 +02:00
Gwendal Roué
9e1ff42249
[BREAKING] Rename CSQLite to GRDBSQLite
...
Fix #1528
2024-08-24 18:15:57 +02:00
Gwendal Roué
9cd1d849cc
[BREAKING] Stop exporting SQLite
2024-08-24 17:25:35 +02:00
Gwendal Roué
8caf31296f
[BREAKING] Xcode 16+, Swift 6+
2024-08-24 15:43:09 +02:00
Gwendal Roué
13bc9ae56c
Tests for Configuration.journalMode
2023-08-25 09:10:43 +01:00
Gwendal Roué
5ab0d18055
Failing tests for non-empty wal files on DatabasePool creation
2023-06-02 09:35:51 +02:00
Gwendal Roué
abd3ba39b1
Explicit tests that a DatabasePool can read from a new instance, and from a truncated wal file
2023-06-01 17:20:25 +02:00
Gwendal Roué
00d1a80b31
Failing tests for number of threads created by DatabasePool
2022-05-24 19:31:09 +02:00
Gwendal Roué
7af3858ff6
More robust DatabasePool.close() test
2021-11-07 08:17:48 +01:00
Gwendal Roué
1aab03b02a
Fix close() test
...
The behavior of sqlite3_close_v2() depends on SQLite version. Don't test this behavior.
2021-11-01 19:55:31 +01:00
Gwendal Roué
20cb50f52d
Public close() method
2021-10-31 18:12:13 +01:00
Gwendal Roué
7623a96034
Failing test for #931
2021-03-06 13:34:27 +01:00
Gwendal Roué
8e2fb1fb22
Update tests
2020-09-06 13:57:16 +02:00
Gwendal Roué
e4803c1e0c
Cleanup SQLITE_FCNTL_PERSIST_WAL tests
2020-05-06 13:25:59 +02:00
Gwendal Roué
db7fb96142
Tests for persistent WAL mode
...
Tests for SQLITE_FCNTL_PERSIST_WAL: https://www.sqlite.org/c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlpersistwal
2020-05-06 08:55:27 +02:00