Gwendal Roué
22114ad433
DatabaseMigrator is Sendable
2024-07-27 16:37:32 +02:00
Gwendal Roué
6e691fe71d
DatabaseFunction is Sendable
2024-07-27 16:37:32 +02:00
Gwendal Roué
05f7d3c8d4
[BREAKING] Remove DatabaseFuture and concurrentRead
...
That's one less DispatchSemaphore. We don't need this method anymore.
2024-07-27 16:37:32 +02:00
Gwendal Roué
54ffb21fb8
Configuration is Sendable
2024-07-27 16:37:32 +02:00
Gwendal Roué
f7dc72a5f3
TransactionClock is Sendable
2024-07-27 16:37:32 +02:00
Gwendal Roué
e0d8e20bef
BusyCallback and BusyMode are Sendable
2024-07-27 16:37:32 +02:00
Gwendal Roué
04d8c357b5
Tests need a Mutex too
2024-07-27 16:37:32 +02:00
Gwendal Roué
00ccab06bd
Rename LockedBox to Mutex
...
Maybe we'll be able to plug in the standard one eventually: https://forums.swift.org/t/pitch-synchronous-mutual-exclusion-lock/69889
2024-07-27 16:37:32 +02:00
Gwendal Roué
2661ff4690
[BREAKING] Remove Configuration.defaultTransactionKind
...
GRDB know defaults read-only transactions to DEFERRED, and write transactions to IMMEDIATE. See https://github.com/groue/GRDB.swift/issues/1483 for some context.
2024-07-27 16:37:32 +02:00
Gwendal Roué
2297c8f432
[BREAKING] Bump requirements: watchOS 7
...
Rationale: https://github.com/groue/GRDB.swift/issues/1472#issuecomment-1960696836
2024-07-27 16:37:32 +02:00
Gwendal Roué
679d6463fd
[BREAKING] Stop exporting SQLite
2024-07-27 16:37:32 +02:00
Gwendal Roué
83c0e6432b
[BREAKING] Remove AsyncValueObservation does not need any scheduler
2024-07-27 16:37:32 +02:00
Gwendal Roué
32f41472b6
[BREAKING] insertAndFetch, saveAndFetch, and updateAndFetch no longer return optionals.
...
Those optionals were just an annoyance. Now, nil results are replaced with `RecordError.recordNotFound`. Such an error is only expected with the IGNORE conflict policy.
2024-07-27 16:37:32 +02:00
Gwendal Roué
5ab166b9c3
[BREAKING] Bump requirements: Swift 5.10, Xcode 15.3, iOS 12, tvOS 12
2024-07-27 16:37:32 +02:00
Steven Roebert
c977cb8226
Implemented support for single value decoding in _RowDecoder
2024-07-13 11:48:02 +02:00
Gwendal Roué
e6d4223b14
EncodableRecord takes precedence over Encodable when a record is encoded with a SingleValueEncodingContainer.
2024-07-10 08:47:49 +02:00
Gwendal Roué
5999227c01
Failing test for #1565
2024-07-09 13:31:54 +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é
6689470457
Remove Double infinities from database dump tests
...
Some SQLite versions store or read +inf and -inf as 9.0e+999 and -9.0e+999, and this makes some tests fail.
Known failure: SQLCipher4, test_quote_value_formatting(), https://github.com/groue/GRDB.swift/actions/runs/9388768610/job/25854709627
I could not reproduce.
2024-06-06 07:50:02 +02:00
Gwendal Roué
bbbd6bba90
Add Set methods union, formUnion, intersection and formIntersection that accept a cursor.
2024-06-05 19:38:16 +02:00
Gwendal Roué
bb789e3dee
QueryInterfaceRequest.deleteAndFetchIds
2024-06-05 18:42:36 +02:00
Gwendal Roué
0a5bef4c0e
SingletonUserDefaultsTest
2024-04-21 14:56:47 +02:00
Gwendal Roué
de382d30b8
Test decodeNil
...
Two failing tests related to https://github.com/groue/GRDB.swift/issues/1531
2024-04-21 12:13:24 +02:00
Gwendal Roué
3521030e13
Test _RowDecoder.KeyedContainer.allKeys, contains(_:), and support some nested keyed containers
2024-04-21 12:13:24 +02:00
Gwendal Roué
000aaa8698
Add test that specifically addresses #1517
2024-03-29 13:21:12 +01:00
Gwendal Roué
d804b5ed9c
Bump performance dependencies
2024-03-23 14:06:05 +01:00
Gwendal Roué
32642d566b
Test cast function
2024-03-23 10:47:57 +01:00
Gwendal Roué
1f4d5ac61a
Fix test ambiguity
2024-03-23 10:47:49 +01:00
Gwendal Roué
a49fd85627
Regression tests for #1512
2024-03-21 14:25:12 +01:00
Gwendal Roué
5413dcfeeb
Remove jsonErrorPosition unless GRDBCUSTOMSQLITE || GRDBCIPHER
...
For some reason, if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) has stopped being able to skip the test (WTF?)
2024-03-19 12:15:47 +01:00
Gwendal Roué
4e0ab25106
Fix flaky tests due to Recorder incorrect critical section
2024-03-17 22:40:38 +01:00
Gwendal Roué
c3e7736534
Dump schema
2024-03-17 20:45:31 +01:00
Gwendal Roué
3b096b38e7
Failing test for #1500
2024-03-17 16:13:35 +01:00
Gwendal Roué
9cee1e218d
Tests for SQLITE_BUSY prevention with IMMEDIATE transactions
...
Those tests support the recommendation of IMMEDIATE transactions for shared databasesS.
See #1483
2024-01-17 19:39:40 +01:00
Gwendal Roué
e5a7c73dc9
Tests for associations to or from views
2024-01-14 14:33:17 +01:00
Gwendal Roué
a00a3f7c80
Fix failing test that dumpContent ignores shadow tables
2024-01-06 18:14:37 +01:00
Gwendal Roué
b9ac9b1ca8
Failing test that dumpContent ignores shadow tables
2024-01-06 18:12:45 +01:00
Gwendal Roué
07f1ddac04
Test that dumpContent ignores GRDB internal tables
2024-01-06 18:12:21 +01:00
Gwendal Roué
b42f618a01
Disable tests for attached schemas when databases are encrypted
2024-01-06 12:08:54 +01:00
Ben Barnett
27a4215424
Add schemaName parameter to foreign key checking functions
2023-12-08 18:22:49 +00:00
Ben Barnett
65167ec7da
Add schemaName parameter to table/view/triggerExists()
2023-12-08 18:22:49 +00:00
Ben Barnett
73489fc0e7
Add schemaName parameter to indexes(on:)
2023-12-08 18:22:49 +00:00
Ben Barnett
1aca8efa65
Add schemaName parameter to foreignKeys(on:)
2023-12-08 18:22:49 +00:00
Ben Barnett
f00a974211
Add schemaName parameter to columns(in:)
2023-12-06 20:49:48 +00:00
Ben Barnett
ac475cc158
Add schemaName parameter to primaryKey(_:)
2023-12-06 20:32:17 +00:00
Gwendal Roué
c5203f078d
Make Database.readOnly public
2023-11-30 07:56:21 +01:00
Gwendal Roué
dc281cee25
Cleanup tests for unspecified changes to a column
2023-11-25 17:01:11 +01:00
Gwendal Roué
9d6e127822
Failing test for DatabaseRegionObservation and Database.notifyChanges(in:)
2023-11-25 15:32:35 +01:00
Gwendal Roué
3df718c1a6
Failing test for ValueObservation and Database.notifyChanges(in:)
2023-11-25 15:32:35 +01:00