Gwendal Roué
63590ede60
Association limit WIP
2025-03-01 13:20:23 +01:00
Gwendal Roué
392137c357
XCTestExpectation is Sendable starting Xcode 16.3 beta
2025-02-23 18:43:45 +01:00
Gwendal Roué
aed22fe0bc
Support for temporary virtual tables.
2025-02-23 13:45:46 +01:00
Gwendal Roué
79a782038e
Undeprecate Date coding strategies based on DateFormatter
...
https://github.com/swiftlang/swift/issues/78635#issuecomment-2676324549
> DateFormatter is indeed thread safe and its conformance to Sendable is correct
2025-02-23 11:12:24 +01:00
Gwendal Roué
824100990f
Deprecate Date coding strategies based on DateFormatter
...
Fix #1728
2025-02-22 13:45:42 +01:00
Gwendal Roué
87b236dfe0
selectID
...
This reverts 7ffc332327
At the time, selectID was replaced with selectPrimaryKey(as:) because:
> Since Optional is a database value like others, selectID would be a request of optionals for records with an optional ID type:
>
> struct Player: Identifiable, MutablePersistableRecord {
> var id: Int64?
> }
>
> Player.selectID() // QueryInterface<Int64?>
>
> This is not good, because primary keys are not null. And those requests would fetch impractical types such as [Int64?], Set<Int64?>, Int64??.
This problem is reintroduced, but we now recommend against optional ids in https://swiftpackageindex.com/groue/grdb.swift/documentation/grdb/recordrecommendedpractices . And record with optional ids can use selectPrimaryKey(as:).
2025-02-11 20:47:49 +01:00
Gwendal Roué
a64b09d121
Failing test for #1715
2025-02-04 19:35:39 +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é
8e7cbf098f
Fix Realm integration
2025-01-26 16:29:51 +01:00
Gwendal Roué
7250d759fe
Fix generatePerformanceReport.rb script
2025-01-26 16:29:51 +01:00
Gwendal Roué
fe7b9955b1
Upgrade performance tests dependencies
2025-01-26 16:29:51 +01:00
Gwendal Roué
6df8e2bd34
Fix casing of swiftpackageindex.com urls
2025-01-26 15:31:12 +01:00
Gwendal Roué
ed17710694
Add tests of JSON_GROUP_ARRAY output, from both JSON and JSONB input
2025-01-26 14:44:27 +01:00
Gwendal Roué
0f68d8b684
JSON_VALID options
2025-01-26 14:21:35 +01:00
Gwendal Roué
367f8f7e37
Add missing imports for C SQLite functions
2025-01-26 14:21:35 +01:00
Gwendal Roué
831e79ee82
JSONB functions and tests
2025-01-26 14:21:35 +01:00
Gwendal Roué
8b3f9c0936
Prefer JSONB when building JSON
2025-01-26 14:21:35 +01:00
Gwendal Roué
b63d75da21
Failing tests for inflections
...
- bias/biases
- focus/focuses
- gas/gases
- lens/lenses
2025-01-22 20:41:39 +01:00
Gwendal Roué
495e76bb1a
Fix performance tests for SQLite.swift
2025-01-20 08:51:01 +01:00
Gwendal Roué
37ea21eb96
Test AllColumnsExcluding and Table
2025-01-19 16:26:59 +01:00
Gwendal Roué
33103bb373
AllColumnsExcluding tests
2025-01-19 16:26:59 +01:00
Gwendal Roué
6b23181337
Use .allColumns and .rowID instead of AllColumns() and Column.rowID
2025-01-19 16:26:59 +01:00
Gwendal Roué
4315030af5
More tests for object existence checks
2024-10-13 11:12:27 +02:00
Janosch Hildebrand
a741fb38f0
Fix DatabaseMigrator.hasSchemaChanges failing for readonly connections
2024-10-12 18:36:15 +02:00
Gwendal Roué
0aa8498620
DatabaseMigrator.hasSchemaChanges
2024-10-12 12:40:36 +02:00
Gwendal Roué
a17d72e04c
Make the top-level coalesce function work with collections of size zero and one.
2024-10-06 12:53:22 +02:00
Gwendal Roué
761b00f9bc
Test Row.coalesce with collections of size zero and one.
2024-10-06 12:45:38 +02:00
Gwendal Roué
ac3278a38b
Test top-level function coalesce like other top-level functions
2024-10-06 12:42:33 +02:00
Gwendal Roué
06c3ab0d16
Test Row.coalesce on all variants of Row
2024-10-06 12:42:10 +02:00
Phil Mitchell
d7754fa79c
Add coalesce free function and Row method
2024-09-30 13:10:59 +10:00
Gwendal Roué
b389547713
Code dump for Swift6Migration test app
2024-09-27 18:02:59 +02:00
Gwendal Roué
aa7c528ef3
Swift Concurrency Guide: GlobalActorIsolatedTypesUsability
2024-09-22 13:50:10 +02:00
Gwendal Roué
ef2251e57c
Test access to SQLite C functions
2024-09-22 12:51:23 +02:00
Gwendal Roué
972aa33f68
Avoid optionals in JSON Data to String conversions
2024-09-22 10:10:01 +02:00
Gwendal Roué
89aa353974
StrictConcurrency: databaseDecodingUserInfo and databaseEncodingUserInfo must be declared as a computed property
2024-09-22 10:10:01 +02:00
Gwendal Roué
cc0b401f0a
StrictConcurrency: FetchableRecord.databaseDecodingUserInfo must be declared as a computed property
2024-09-22 10:10:01 +02:00
Gwendal Roué
9ca2f6e6cc
New manual install test app
2024-09-21 22:04:01 +02:00
Gwendal Roué
173f363bdc
TableRecord.databaseSelection should be declared as a computed property
2024-09-21 17:21:59 +02: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é
d489178d04
Improve ValueObservation tests debuggability
2024-09-15 11:33:25 +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é
ea4d208037
Rename ReadWriteBox to ReadWriteLock
2024-09-08 13:33:07 +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é
71f5554962
Test cancellation handling from AnyDatabaseReader and AnyDatabaseWriter
2024-09-01 15:35:37 +02:00