Gwendal Roué
d6b91eec85
[BREAKING] DatabaseReader async methods support Task cancellation
2024-09-01 15:35:37 +02:00
Gwendal Roué
fa54b74eba
[BREAKING] DatabaseWriter async methods support Task cancellation
2024-09-01 15:35:37 +02:00
Gwendal Roué
5ecf9f67fb
Vendor AsyncSemaphore
...
Semaphores allow tests to precisely schedule ordering of async jobs
2024-09-01 15:24:39 +02:00
Gwendal Roué
849bba2820
Refactor ValueReducer for Swift concurrency
...
The fetching facet of a ValueReducer is Sendable.
2024-08-27 08:31:28 +02:00
Gwendal Roué
b587afba0e
Pool is Sendable
2024-08-25 17:28:02 +02:00
Gwendal Roué
5333dbeff1
LogErrorFunction is Sendable
2024-08-25 16:26:38 +02:00
Gwendal Roué
55cdb4e9a9
DatabaseMigrator is Sendable
2024-08-25 16:26:38 +02:00
Gwendal Roué
b752229c37
DatabaseFunction is Sendable
2024-08-25 15:42:06 +02:00
Gwendal Roué
8e860e671b
Configuration is Sendable
2024-08-25 15:07:53 +02:00
Gwendal Roué
0457a6262e
TransactionClock is Sendable
2024-08-25 14:56:40 +02:00
Gwendal Roué
ad74526f6a
BusyCallback and BusyMode are Sendable
2024-08-25 14:50:42 +02:00
Gwendal Roué
7747211691
[BREAKING] databaseDateDecodingStrategy depends on the column
2024-08-25 14:06:57 +02:00
Gwendal Roué
95ca9f5bf3
[BREAKING] databaseDataDecodingStrategy depends on the column
2024-08-25 14:06:50 +02:00
Gwendal Roué
bcd6e03d7a
[BREAKING] databaseUUIDEncodingStrategy depends on the column
2024-08-25 14:06:44 +02:00
Gwendal Roué
7a8a9a9363
[BREAKING] databaseDateEncodingStrategy depends on the column
2024-08-25 14:06:35 +02:00
Gwendal Roué
1fe4df9438
[BREAKING] databaseDataEncodingStrategy depends on the column
2024-08-25 14:00:53 +02:00
Gwendal Roué
b2286aaaab
DatabaseCursor has a primary associated type
2024-08-25 13:08:46 +02:00
Gwendal Roué
e72a37d7d5
Rename LockedBox to Mutex
2024-08-25 12:40:28 +02:00
Gwendal Roué
1de32c267b
[BREAKING] Remove DatabaseFuture and concurrentRead
...
That's one less DispatchSemaphore. We don't need this method anymore.
2024-08-25 11:07:05 +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é
451a9eb493
[BREAKING] Remove Configuration.defaultTransactionKind
...
GRDB now defaults read-only transactions to DEFERRED, and write transactions to IMMEDIATE. See https://github.com/groue/GRDB.swift/issues/1483 for some context.
2024-08-25 08:22:07 +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é
cd4e853b74
[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-08-24 17:02:49 +02:00
Gwendal Roué
0240ab552c
Fix compiler warnings
2024-08-24 15:45:38 +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é
29eb04c39a
[BREAKING] iOS 12+
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é
d3d2a9c4f7
Stop testing error messages that depend on the SQLite version
2024-08-24 10:26:34 +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