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
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é
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é
515bd78d28
Failing test for https://github.com/groue/GRDB.swift/discussions/1746
2025-03-22 12:12:12 +01:00
Gwendal Roué
32c9ba24ba
Replace sqlite3_libversion_number() with Database.sqliteLibVersionNumber
...
and remove SQLite imports that are no longer necessary.
2025-02-01 12:19:11 +01:00
Gwendal Roué
46e15616a7
[BREAKING] macOS 10.15+
2024-09-21 14:28:24 +02:00
Gwendal Roué
e4a4735494
[BREAKING] tvOS 13+
2024-09-21 13:57:35 +02:00
Gwendal Roué
8c40592955
[BREAKING] iOS 13+
2024-09-21 13:57:23 +02:00
Gwendal Roué
bdb7d84086
[BREAKING] ValueObservation MainActor scheduling
...
Breaking because before iOS 13, macOS 10.15, tvOS 13, there is no longer any default scheduler
2024-09-21 12:30:38 +02:00
Gwendal Roué
e1a384009a
[BREAKING] Async sequences built from ValueObservation schedule values and errors on the cooperative thread pool by default.
2024-09-21 12:19:39 +02:00
Gwendal Roué
945f398c92
Fix Sendable warnings in tests
2024-09-08 18:00:37 +02:00
Gwendal Roué
a7a9c75185
Place @escaping before @Sendable
2024-09-08 13:41:13 +02:00
Gwendal Roué
e72a37d7d5
Rename LockedBox to Mutex
2024-08-25 12:40:28 +02:00
Gwendal Roué
1c368ed18d
Skip flaky test with SQLCipher 3
2024-08-25 10:39:38 +02:00
Gwendal Roué
d96dc2d328
Aim at debugging failing CI test
2024-08-25 08:47:58 +02:00
Gwendal Roué
79cb862478
[BREAKING] watchOS 7+
...
Rationale: https://github.com/groue/GRDB.swift/issues/1472#issuecomment-1960696836
2024-08-24 15:45:38 +02:00
Gwendal Roué
8caf31296f
[BREAKING] Xcode 16+, Swift 6+
2024-08-24 15:43:09 +02:00
Gwendal Roué
78545f2c8c
Tests for #1541
2024-06-09 13:02:27 +02:00
Gwendal Roué
263a549c21
Test that a cancelled ValueObservation does not notify of changes that were enqueued before cancellation.
...
This is a test for #1550
2024-06-08 13:47:21 +02:00
Gwendal Roué
3b096b38e7
Failing test for #1500
2024-03-17 16:13:35 +01:00
Gwendal Roué
3df718c1a6
Failing test for ValueObservation and Database.notifyChanges(in:)
2023-11-25 15:32:35 +01:00
Gwendal Roué
db01b0063c
Fix a test that relied on observation of every single changes
2023-06-02 15:39:26 +02:00
Gwendal Roué
437b800d8c
Add test for the SQLite file provided by @kustra
...
https://github.com/groue/GRDB.swift/issues/1383#issuecomment-1572897011
2023-06-02 08:34:14 +02:00
Gwendal Roué
b840babb55
Document the intent of #1383 regression tests
2023-06-01 20:15:05 +02:00
Gwendal Roué
4ab8ac8d3f
Failing test for #1383 (async version)
2023-06-01 19:53:34 +02:00
Gwendal Roué
d66d2118b5
Failing test for #1383
2023-06-01 17:05:06 +02:00
Gwendal Roué
8b1b3b0396
Fix tests that relied on observation of every single changes
2023-04-29 12:47:25 +02:00
Gwendal Roué
d07e8bd3a0
The scenario that leads to the #1362 deadlock
2023-04-18 18:22:47 +02:00
Matt Gallagher
7feaa748a4
Removed some unneeded configuration from the test.
2023-04-18 13:06:05 +10:00
Matt Gallagher
c159638498
A test demonstrating deadlock when observer count exceeds size of DatabasePool.
2023-04-18 12:48:06 +10:00
Gwendal Roué
9011f71247
Fix tests for unavailable wal snapshots
2023-04-15 09:50:46 +02:00
Gwendal Roué
069bce217d
Attempts at finding regression tests for #1362
2023-04-14 08:28:34 +02:00
Gwendal Roué
f6e695a21d
More explicit any/some
2023-04-08 12:01:59 +02:00
Gwendal Roué
5facc24ebb
Fix compiler warnings for Swift 5.8
2023-03-22 18:40:37 +01:00
Gwendal Roué
0a544dc0d2
Cleanup relationships between SerializedDatabase, WALSnapshotTransaction, and DatabasePool
...
SerializedDatabase hides its allowsUnsafeTransactions property, and makes it thread-safe by protecting it inside its serialized dispatch queue.
WALSnapshotTransaction always notifies when the reader connection is no longer used, and reuses the "isInsideTransaction" wording.
2023-03-17 13:52:29 +01:00
Gwendal Roué
d3c289a320
Availability checks cleanup
2023-01-22 12:37:40 +01:00
Gwendal Roué
0ba3dff901
Rewrite availability check for WAL snapshots
...
Also, enable WAL snapshots with SQLCipher, if SQLITE_ENABLE_SNAPSHOT is set.
2022-11-18 13:33:28 +01:00
Gwendal Roué
847386860f
Fix test compilation on Xcode 14
...
Grrr
2022-11-17 22:48:13 +01:00
Gwendal Roué
e4c5cc3451
Test that DatabaseSnapshotPool can be used from ValueObservation
2022-11-17 22:04:06 +01:00
Gwendal Roué
4871304c60
Enable WALSnapshot on macOS (Xcode 14.1+)
2022-11-13 15:29:44 +01:00
Gwendal Roué
d3ad7acd59
No WALSnapshot on macOS and macOS Catalyst
...
Fix #1276
2022-09-09 08:16:55 +02:00
Gwendal Roué
a9fcf1b9c1
SE-0335, SE-0341, SE-0346, SE-0352, SE-0358: some, any, primary associated types
2022-08-21 21:22:34 +02:00
Gwendal Roué
458e1e2675
BREAKING: throwing DatabaseQueue() initializer
...
As a consequence, FTS3.tokenize(_:) is a throwing method as well.
2022-08-21 21:22:33 +02:00
Gwendal Roué
23cbf13af0
Swift 5.7 required: Availability checks
2022-08-21 19:21:57 +02:00
Gwendal Roué
6da7d47394
Swift 5.7 required: Remove compiler checks
2022-08-21 19:21:57 +02:00
Gwendal Roué
38c0d68db7
WALSnapshot
...
SQLITE_ENABLE_SNAPSHOT is available from Xcode 14 :-)
2022-06-24 16:48:38 +02:00
Gwendal Roué
758f561fbf
Raise timeout threshold for SQLCipher CI tests
2022-05-22 17:31:45 +02:00
Gwendal Roué
819ee588c9
Failing test for #1209
2022-04-30 14:26:04 +02:00