Gwendal Roué
9ef5e2c8eb
Simplify error messages
2025-09-23 17:12:27 +02:00
Gwendal Roué
b210ec7428
View Records guide
2025-09-23 17:12:27 +02:00
Gwendal Roué
a7e3acf409
Remove TODO warnings
2025-09-23 17:12:27 +02:00
Gwendal Roué
ca27f75760
Test the stable order of views with a primary key
2025-09-23 17:12:27 +02:00
Gwendal Roué
99ecf76a77
Support primary key when testing the existence of an association to a view
2025-09-23 17:12:27 +02:00
Gwendal Roué
f4991273c2
DatabaseSchemaSource tests
2025-09-23 17:12:27 +02:00
Gwendal Roué
37dde39557
Public Database.schemaSource and withSchemaSource(_:execute:)
2025-09-23 17:12:27 +02:00
Gwendal Roué
5786391dc9
RecordMappedOnMutableViewTests
2025-09-23 17:12:27 +02:00
Gwendal Roué
e1abafaae3
Ignore schema source during migrations
2025-09-23 17:12:27 +02:00
Gwendal Roué
75e99861af
Update TableRecordUpdateTests with record types based on database views
2025-09-23 17:12:27 +02:00
Gwendal Roué
2e433a3cb2
Update TableRecordDeleteTests with record types based on database views
2025-09-23 17:12:27 +02:00
Gwendal Roué
9518d74fa6
Improve error message
2025-09-23 17:12:27 +02:00
Gwendal Roué
38f5226e95
Database.table(_:hasUniqueKey:) now accept views
2025-09-23 17:12:27 +02:00
Gwendal Roué
2b19803644
DatabaseSchemaSource tests
2025-09-23 17:12:27 +02:00
Gwendal Roué
f3acfecc16
DatabaseCollation no longer uses a deprecated String initializer
2025-09-13 12:21:36 +02:00
Gwendal Roué
cd84db3873
Xcode 26 upgrade
2025-09-10 07:12:52 +02:00
Gwendal Roué
37065fb503
Regression test for #1797
2025-08-19 08:05:07 +02:00
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