Gwendal Roué
9a1914a813
Test throwing record row accessors
2025-07-20 13:00:12 +02:00
Gwendal Roué
4a92263c5e
Test throwing column row accessors
2025-07-20 13:00:12 +02:00
Gwendal Roué
24e0f5ddeb
Make throwing row accessors public
2025-07-20 13:00:12 +02:00
Gwendal Roué
ad704c58e5
Hide implementation of RowDecodingError
...
Turn the enum into a struct so that it can be made public without exposing internal details
2025-07-20 13:00:12 +02:00
Gwendal Roué
7a1e65b142
Remove late cancellation checks
...
I'm slowly changing my mind about this.
2025-07-19 15:27:08 +02:00
Gwendal Roué
b24fb76610
Failing test for task locals with DatabaseWriter ( #1793 )
2025-07-19 14:25:50 +02:00
Gwendal Roué
9dd8b2cef7
Add failing test for task locals access from unsafeRead ( #1793 )
2025-07-19 14:25:50 +02:00
Gwendal Roué
01cd49b4ec
Failing test for task locals ( #1793 )
2025-07-19 14:25:50 +02:00
Gwendal Roué
034b241e71
Rename ColumnsProvider to DatabaseComponents
2025-05-11 13:10:19 +02:00
Gwendal Roué
2316fb3831
Prefer key paths when possible
2025-05-11 11:12:19 +02:00
Gwendal Roué
98e2812089
Convenience api for updating a single column
2025-05-11 10:58:09 +02:00
Gwendal Roué
5c9b772e65
Test CommonTableExpression aliases on Swift 6.1
2025-05-10 16:37:44 +02:00
Gwendal Roué
5461caff04
Tests for generic TableAlias
2025-05-10 14:52:48 +02:00
Gwendal Roué
503fb09270
Test that aggregate can be expressed with key-paths in Swift 6.1
2025-05-10 09:36:14 +02:00
Gwendal Roué
190ccda727
Rename deleteAndFetchStatement(_:select:) for consistency
2025-05-10 09:36:14 +02:00
Gwendal Roué
7b2e9d838a
Swift 6.1 compiler: test key-path requests.
2025-05-10 09:36:14 +02:00
Gwendal Roué
6b0faede2a
Use closure syntax for insertAndFetch
2025-05-10 09:36:14 +02:00
Gwendal Roué
ed402d5de6
Use closure syntax for batch updates
2025-05-10 09:36:14 +02:00
Gwendal Roué
35fa28ab90
QueryInterfaceRequest.select(_:as:) with ColumnsProvider
2025-05-10 09:36:14 +02:00
Gwendal Roué
a89bd88340
Prefer key paths over closures, except in tests
...
Don't use key paths in tests because they are Swift 6.1+ only
2025-05-10 09:36:14 +02:00
Gwendal Roué
e7fdd65072
deleteAndFetchStatement(_,selection:) with ColumnsProvider
2025-05-10 09:36:14 +02:00
Gwendal Roué
ff15f30a3b
select(_, as:) with ColumnsProvider
2025-05-10 09:36:14 +02:00
Gwendal Roué
f69ca1a573
Build aggregates from ColumnsProvider
2025-05-10 09:36:14 +02:00
Gwendal Roué
5e9b965bee
Test requests built from ColumnsProvider
2025-05-10 09:36:13 +02:00
Gwendal Roué
8774497f31
Modernize QueryInterfaceRequestTests with an inner Columns type
...
so that we can use the new SQLExpressionBuilder
2025-05-10 09:36:13 +02:00
Gwendal Roué
5a0622e5b8
Tests for FTS5Pattern.init(rawPattern:allowedColumns:)
2025-05-08 12:48:24 +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é
4065ff58e8
Add the min and max multi-argument functions
2025-03-15 10:02:24 +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