Gwendal Roué
27b7400979
Async version of Pool.get()
2025-07-19 14:25:50 +02:00
Gwendal Roué
e6847886db
Extract DispatchQueueActor
...
We'll probably need it in order to access pool elements with support for task locals
2025-07-19 14:25:50 +02:00
Gwendal Roué
c064515247
DatabaseQueue and DatabaseSnapshot reads can access task locals
2025-07-19 14:25:50 +02:00
Gwendal Roué
96236a3d44
Turn Database.cancel into a sendable closure
2025-07-19 14:25:50 +02:00
Jason Abbott
c7d50486ad
Merge branch 'groue:development' into development
2025-05-30 12:05:03 -06:00
Jason Abbott
93292d88f4
Make DatabasePreUpdateEvent.Kind Sendable, matching DatabaseEvent.Kind, and also duplicate comments from DatabaseEvent.Kind while here
2025-05-30 12:02:23 -06:00
Gwendal Roué
d1a2cb0948
All closures that accept DatabaseComponents can throw
2025-05-12 20:33:18 +02:00
Gwendal Roué
c2e6c86934
Warn against the independent observation of each element in a list.
2025-05-11 13:32:50 +02:00
Gwendal Roué
034b241e71
Rename ColumnsProvider to DatabaseComponents
2025-05-11 13:10:19 +02:00
Gwendal Roué
814146c40d
DocC
2025-05-11 11:56:21 +02:00
Gwendal Roué
fedcdef65e
Fix typo
2025-05-11 11:21:48 +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é
8f6f1aa264
TODO
2025-05-11 10:57:28 +02:00
Gwendal Roué
96d04716c2
Update more documentation with the closure syntax
2025-05-11 10:57:20 +02:00
Gwendal Roué
004968517e
Update more documentation with the closure syntax
2025-05-10 17:43:22 +02:00
Gwendal Roué
f635aea2f2
Update more documentation with the closure syntax
2025-05-10 16:38:02 +02:00
Gwendal Roué
d6ff3b14d4
DocC
2025-05-10 15:34:10 +02:00
Gwendal Roué
6cc3116ff4
TableAlias is generic
2025-05-10 14:52:48 +02:00
Gwendal Roué
55edcff97f
Extract TableAlias
2025-05-10 09:40:16 +02:00
Gwendal Roué
430141344d
Update more documentation with the closure syntax
2025-05-10 09:36:14 +02:00
Gwendal Roué
be2fb76d77
DocC
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é
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é
352f77f225
Stop recommending String enums for Columns.
...
We now recommend:
enum Columns {
static let id = Column("id")
static let title = Column("title")
static let latitude = Column("latitude")
static let longitude = Column("longitude")
}
Instead of the previous recommendation:
enum Columns: String, ColumnExpression {
case id, title, latitude, longitude
}
This is because SE-0438 does not support Metatype Keypaths for enums. A request like `Place.order(\.title)` does not compile with a String enum.
2025-05-10 09:36:14 +02:00
Gwendal Roué
ed98ac30e0
DocC
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é
b01f6da3cf
Remove TODO
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é
ce238b6643
Build requests from ColumnsProvider
2025-05-10 09:36:13 +02:00
Gwendal Roué
787393db18
Fix Swiftlint warning
2025-05-10 09:36:13 +02:00
Gwendal Roué
94e90e7e6c
Columns and ColumnsProvider associated types of TableRecord
2025-05-10 09:36:13 +02:00
Gwendal Roué
00f462292b
Documentation
2025-05-08 12:50:19 +02:00
Gwendal Roué
596db46407
Make FTS5Pattern.init(rawPattern:allowedColumns:) public
...
Fix #1763
2025-05-08 12:47:21 +02:00
Gwendal Roué
a71c1d6e80
Removed unnecessary TODO warning
2025-03-28 08:15:54 +01:00
Gwendal Roué
67b34dc57c
TransactionObserver can access the database, even if the transaction was completed in a cancelled task.
...
Fix https://github.com/groue/GRDB.swift/discussions/1746
2025-03-22 12:13:42 +01:00
Gwendal Roué
f2aa6b386f
Improve the documentation for table recreation
2025-03-15 12:06:31 +01:00
Gwendal Roué
71e09a38d4
Document that migrations that rename foreign key columns should use immediate foreign key checks
...
Fix #1740
2025-03-15 12:06:14 +01:00
Gwendal Roué
4065ff58e8
Add the min and max multi-argument functions
2025-03-15 10:02:24 +01:00
Gwendal Roué
18eab53f74
Document aggregate functions
2025-03-15 09:51:32 +01:00
Gwendal Roué
b48a56ae03
Revert "Merge pull request #1732 from groue/dev/sending-closures"
...
This reverts commit bbd1eab402 , reversing
changes made to 9b09c5342e .
2025-02-23 18:43:45 +01:00
Gwendal Roué
53c9d12d29
Async database access no longer require Sendable closures.
2025-02-23 15:16:36 +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é
494e697e94
Warn against selectID() when the ID type is an optional.
2025-02-12 08:25:27 +01:00