mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Sendable annotations
This commit is contained in:
1 parent
61e0e97b39
commit
e7eac0d500
88 files changed
+957
-711
No files matched your search
@@ -86,7 +86,7 @@ extension QueryInterfaceRequest: FetchRequest {
|
||||
.relation(relation)
|
||||
}
|
||||
|
||||
public func fetchCount(_ db: Database) throws -> Int {
|
||||
@Sendable public func fetchCount(_ db: Database) throws -> Int {
|
||||
try relation.fetchCount(db)
|
||||
}
|
||||
|
||||
@@ -117,7 +117,7 @@ extension QueryInterfaceRequest: FetchRequest {
|
||||
|
||||
extension QueryInterfaceRequest: SelectionRequest {
|
||||
public func selectWhenConnected(
|
||||
_ selection: @escaping (Database) throws -> [any SQLSelectable])
|
||||
_ selection: @escaping @Sendable (Database) throws -> [any SQLSelectable])
|
||||
-> Self
|
||||
{
|
||||
with {
|
||||
@@ -281,7 +281,7 @@ extension QueryInterfaceRequest: SelectionRequest {
|
||||
}
|
||||
|
||||
public func annotatedWhenConnected(
|
||||
with selection: @escaping (Database) throws -> [any SQLSelectable])
|
||||
with selection: @escaping @Sendable (Database) throws -> [any SQLSelectable])
|
||||
-> Self
|
||||
{
|
||||
with {
|
||||
@@ -294,7 +294,7 @@ extension QueryInterfaceRequest: SelectionRequest {
|
||||
|
||||
extension QueryInterfaceRequest: FilteredRequest {
|
||||
public func filterWhenConnected(
|
||||
_ predicate: @escaping (Database) throws -> any SQLExpressible)
|
||||
_ predicate: @escaping @Sendable (Database) throws -> any SQLExpressible)
|
||||
-> Self
|
||||
{
|
||||
with {
|
||||
@@ -307,7 +307,7 @@ extension QueryInterfaceRequest: FilteredRequest {
|
||||
|
||||
extension QueryInterfaceRequest: OrderedRequest {
|
||||
public func orderWhenConnected(
|
||||
_ orderings: @escaping (Database) throws -> [any SQLOrderingTerm])
|
||||
_ orderings: @escaping @Sendable (Database) throws -> [any SQLOrderingTerm])
|
||||
-> Self
|
||||
{
|
||||
with {
|
||||
@@ -354,7 +354,7 @@ extension QueryInterfaceRequest: OrderedRequest {
|
||||
|
||||
extension QueryInterfaceRequest: AggregatingRequest {
|
||||
public func groupWhenConnected(
|
||||
_ expressions: @escaping (Database) throws -> [any SQLExpressible])
|
||||
_ expressions: @escaping @Sendable (Database) throws -> [any SQLExpressible])
|
||||
-> Self
|
||||
{
|
||||
with {
|
||||
@@ -365,7 +365,7 @@ extension QueryInterfaceRequest: AggregatingRequest {
|
||||
}
|
||||
|
||||
public func havingWhenConnected(
|
||||
_ predicate: @escaping (Database) throws -> any SQLExpressible)
|
||||
_ predicate: @escaping @Sendable (Database) throws -> any SQLExpressible)
|
||||
-> Self
|
||||
{
|
||||
with {
|
||||
|
||||
Reference in new issue
Block a user