From 47c34eb7f653e758a183b8130a4a25d1b5666fe5 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Thu, 29 Jan 2026 09:09:08 -0600 Subject: [PATCH] Qualify _OptionalProtocol. --- Package.resolved | 8 +-- .../CloudKit/Internal/MockSyncEngine.swift | 1 - Sources/SQLiteData/FetchOne.swift | 62 +++++++++---------- 3 files changed, 35 insertions(+), 36 deletions(-) diff --git a/Package.resolved b/Package.resolved index 94169b4e..0bc1cf5d 100644 --- a/Package.resolved +++ b/Package.resolved @@ -60,8 +60,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/swift-custom-dump", "state" : { - "revision" : "93a8aa4937030b606de42f44b17870249f49af0b", - "version" : "1.3.4" + "revision" : "91be35a71a9890246f2a8f0dd1ee9bdf7157645d", + "version" : "1.4.0" } }, { @@ -123,8 +123,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/swift-snapshot-testing", "state" : { - "revision" : "a8b7c5e0ed33d8ab8887d1654d9b59f2cbad529b", - "version" : "1.18.7" + "revision" : "cc051f1c07a414cf36b3d45fc8d00f2a8086ca5e", + "version" : "1.18.8" } }, { diff --git a/Sources/SQLiteData/CloudKit/Internal/MockSyncEngine.swift b/Sources/SQLiteData/CloudKit/Internal/MockSyncEngine.swift index 9a2cc088..e8719d26 100644 --- a/Sources/SQLiteData/CloudKit/Internal/MockSyncEngine.swift +++ b/Sources/SQLiteData/CloudKit/Internal/MockSyncEngine.swift @@ -201,7 +201,6 @@ extension SyncEngine { package struct SendRecordsCallback { fileprivate let operation: @Sendable () async -> Void - @discardableResult package func receive() async { await operation() } diff --git a/Sources/SQLiteData/FetchOne.swift b/Sources/SQLiteData/FetchOne.swift index e9e4312e..9eb47a1f 100644 --- a/Sources/SQLiteData/FetchOne.swift +++ b/Sources/SQLiteData/FetchOne.swift @@ -121,7 +121,7 @@ public struct FetchOne: Sendable { database: (any DatabaseReader)? = nil ) where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value: StructuredQueriesCore.Table, Value.QueryOutput == Value { @@ -230,7 +230,7 @@ public struct FetchOne: Sendable { database: (any DatabaseReader)? = nil ) where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value == S.From.QueryOutput?, S.QueryValue == (), S.Joins == () @@ -255,9 +255,9 @@ public struct FetchOne: Sendable { database: (any DatabaseReader)? = nil ) where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, S.QueryValue: QueryRepresentable, - S.QueryValue: _OptionalProtocol, + S.QueryValue: StructuredQueriesCore._OptionalProtocol, Value == S.QueryValue.QueryOutput { sharedReader = SharedReader( @@ -283,7 +283,7 @@ public struct FetchOne: Sendable { ) where Value: QueryRepresentable, - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value.QueryOutput == Value { sharedReader = SharedReader( @@ -368,7 +368,7 @@ public struct FetchOne: Sendable { database: (any DatabaseReader)? = nil ) async throws -> FetchSubscription where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value == S.From.QueryOutput?, S.QueryValue == (), S.Joins == () @@ -393,9 +393,9 @@ public struct FetchOne: Sendable { database: (any DatabaseReader)? = nil ) async throws -> FetchSubscription where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, S.QueryValue: QueryRepresentable, - S.QueryValue: _OptionalProtocol, + S.QueryValue: StructuredQueriesCore._OptionalProtocol, Value == S.QueryValue.QueryOutput { try await sharedReader.load( @@ -418,7 +418,7 @@ public struct FetchOne: Sendable { ) async throws -> FetchSubscription where Value: QueryRepresentable, - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value.QueryOutput == Value { try await sharedReader.load( @@ -449,7 +449,7 @@ extension FetchOne { scheduler: some ValueObservationScheduler & Hashable ) where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value: _Selection, Value.QueryOutput == Value { @@ -497,7 +497,7 @@ extension FetchOne { scheduler: some ValueObservationScheduler & Hashable ) where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value: StructuredQueriesCore.Table, Value.QueryOutput == Value { @@ -637,7 +637,7 @@ extension FetchOne { scheduler: some ValueObservationScheduler & Hashable ) where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value == S.From.QueryOutput?, S.QueryValue == (), S.Joins == () @@ -669,9 +669,9 @@ extension FetchOne { scheduler: some ValueObservationScheduler & Hashable ) where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, S.QueryValue: QueryRepresentable, - S.QueryValue: _OptionalProtocol, + S.QueryValue: StructuredQueriesCore._OptionalProtocol, Value == S.QueryValue.QueryOutput { sharedReader = SharedReader( @@ -701,7 +701,7 @@ extension FetchOne { ) where Value: QueryRepresentable, - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value.QueryOutput == Value { sharedReader = SharedReader( @@ -810,7 +810,7 @@ extension FetchOne { scheduler: some ValueObservationScheduler & Hashable ) async throws -> FetchSubscription where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value == S.From.QueryOutput?, S.QueryValue == (), S.Joins == () @@ -842,9 +842,9 @@ extension FetchOne { scheduler: some ValueObservationScheduler & Hashable ) async throws -> FetchSubscription where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, S.QueryValue: QueryRepresentable, - S.QueryValue: _OptionalProtocol, + S.QueryValue: StructuredQueriesCore._OptionalProtocol, Value == S.QueryValue.QueryOutput { try await sharedReader.load( @@ -874,7 +874,7 @@ extension FetchOne { ) async throws -> FetchSubscription where Value: QueryRepresentable, - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value.QueryOutput == Value { try await sharedReader.load( @@ -926,7 +926,7 @@ extension FetchOne: Equatable where Value: Equatable { animation: Animation ) where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value: _Selection, Value.QueryOutput == Value { @@ -968,7 +968,7 @@ extension FetchOne: Equatable where Value: Equatable { animation: Animation ) where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value: StructuredQueriesCore.Table, Value.QueryOutput == Value { @@ -1103,7 +1103,7 @@ extension FetchOne: Equatable where Value: Equatable { animation: Animation ) where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value == S.From.QueryOutput?, S.QueryValue == (), S.Joins == () @@ -1133,9 +1133,9 @@ extension FetchOne: Equatable where Value: Equatable { animation: Animation ) where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, S.QueryValue: QueryRepresentable, - S.QueryValue: _OptionalProtocol, + S.QueryValue: StructuredQueriesCore._OptionalProtocol, Value == S.QueryValue.QueryOutput { self.init( @@ -1164,7 +1164,7 @@ extension FetchOne: Equatable where Value: Equatable { ) where Value: QueryRepresentable, - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value.QueryOutput == Value { self.init( @@ -1260,7 +1260,7 @@ extension FetchOne: Equatable where Value: Equatable { animation: Animation ) async throws -> FetchSubscription where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value == S.From.QueryOutput?, S.QueryValue == (), S.Joins == () @@ -1285,9 +1285,9 @@ extension FetchOne: Equatable where Value: Equatable { animation: Animation ) async throws -> FetchSubscription where - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, S.QueryValue: QueryRepresentable, - S.QueryValue: _OptionalProtocol, + S.QueryValue: StructuredQueriesCore._OptionalProtocol, Value == S.QueryValue.QueryOutput { try await load(statement, database: database, scheduler: .animation(animation)) @@ -1311,7 +1311,7 @@ extension FetchOne: Equatable where Value: Equatable { ) async throws -> FetchSubscription where Value: QueryRepresentable, - Value: _OptionalProtocol, + Value: StructuredQueriesCore._OptionalProtocol, Value.QueryOutput == Value { try await load(statement, database: database, scheduler: .animation(animation)) @@ -1344,8 +1344,8 @@ private struct FetchOneStatementOptionalValueRequest: } private struct FetchOneStatementOptionalProtocolRequest< - Value: QueryRepresentable & _OptionalProtocol ->: StatementKeyRequest where Value.QueryOutput: _OptionalProtocol { + Value: QueryRepresentable & StructuredQueriesCore._OptionalProtocol +>: StatementKeyRequest where Value.QueryOutput: StructuredQueriesCore._OptionalProtocol { let statement: SQLQueryExpression init(statement: some StructuredQueriesCore.Statement) { self.statement = SQLQueryExpression(statement)