Skip to content

Commit 3b57618

Browse files
authored
Qualify _OptionalProtocol. (#390)
1 parent 05704b5 commit 3b57618

3 files changed

Lines changed: 35 additions & 36 deletions

File tree

Package.resolved

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/SQLiteData/CloudKit/Internal/MockSyncEngine.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@
201201
extension SyncEngine {
202202
package struct SendRecordsCallback {
203203
fileprivate let operation: @Sendable () async -> Void
204-
@discardableResult
205204
package func receive() async {
206205
await operation()
207206
}

Sources/SQLiteData/FetchOne.swift

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public struct FetchOne<Value: Sendable>: Sendable {
121121
database: (any DatabaseReader)? = nil
122122
)
123123
where
124-
Value: _OptionalProtocol,
124+
Value: StructuredQueriesCore._OptionalProtocol,
125125
Value: StructuredQueriesCore.Table,
126126
Value.QueryOutput == Value
127127
{
@@ -230,7 +230,7 @@ public struct FetchOne<Value: Sendable>: Sendable {
230230
database: (any DatabaseReader)? = nil
231231
)
232232
where
233-
Value: _OptionalProtocol,
233+
Value: StructuredQueriesCore._OptionalProtocol,
234234
Value == S.From.QueryOutput?,
235235
S.QueryValue == (),
236236
S.Joins == ()
@@ -255,9 +255,9 @@ public struct FetchOne<Value: Sendable>: Sendable {
255255
database: (any DatabaseReader)? = nil
256256
)
257257
where
258-
Value: _OptionalProtocol,
258+
Value: StructuredQueriesCore._OptionalProtocol,
259259
S.QueryValue: QueryRepresentable,
260-
S.QueryValue: _OptionalProtocol,
260+
S.QueryValue: StructuredQueriesCore._OptionalProtocol,
261261
Value == S.QueryValue.QueryOutput
262262
{
263263
sharedReader = SharedReader(
@@ -283,7 +283,7 @@ public struct FetchOne<Value: Sendable>: Sendable {
283283
)
284284
where
285285
Value: QueryRepresentable,
286-
Value: _OptionalProtocol,
286+
Value: StructuredQueriesCore._OptionalProtocol,
287287
Value.QueryOutput == Value
288288
{
289289
sharedReader = SharedReader(
@@ -368,7 +368,7 @@ public struct FetchOne<Value: Sendable>: Sendable {
368368
database: (any DatabaseReader)? = nil
369369
) async throws -> FetchSubscription
370370
where
371-
Value: _OptionalProtocol,
371+
Value: StructuredQueriesCore._OptionalProtocol,
372372
Value == S.From.QueryOutput?,
373373
S.QueryValue == (),
374374
S.Joins == ()
@@ -393,9 +393,9 @@ public struct FetchOne<Value: Sendable>: Sendable {
393393
database: (any DatabaseReader)? = nil
394394
) async throws -> FetchSubscription
395395
where
396-
Value: _OptionalProtocol,
396+
Value: StructuredQueriesCore._OptionalProtocol,
397397
S.QueryValue: QueryRepresentable,
398-
S.QueryValue: _OptionalProtocol,
398+
S.QueryValue: StructuredQueriesCore._OptionalProtocol,
399399
Value == S.QueryValue.QueryOutput
400400
{
401401
try await sharedReader.load(
@@ -418,7 +418,7 @@ public struct FetchOne<Value: Sendable>: Sendable {
418418
) async throws -> FetchSubscription
419419
where
420420
Value: QueryRepresentable,
421-
Value: _OptionalProtocol,
421+
Value: StructuredQueriesCore._OptionalProtocol,
422422
Value.QueryOutput == Value
423423
{
424424
try await sharedReader.load(
@@ -449,7 +449,7 @@ extension FetchOne {
449449
scheduler: some ValueObservationScheduler & Hashable
450450
)
451451
where
452-
Value: _OptionalProtocol,
452+
Value: StructuredQueriesCore._OptionalProtocol,
453453
Value: _Selection,
454454
Value.QueryOutput == Value
455455
{
@@ -497,7 +497,7 @@ extension FetchOne {
497497
scheduler: some ValueObservationScheduler & Hashable
498498
)
499499
where
500-
Value: _OptionalProtocol,
500+
Value: StructuredQueriesCore._OptionalProtocol,
501501
Value: StructuredQueriesCore.Table,
502502
Value.QueryOutput == Value
503503
{
@@ -637,7 +637,7 @@ extension FetchOne {
637637
scheduler: some ValueObservationScheduler & Hashable
638638
)
639639
where
640-
Value: _OptionalProtocol,
640+
Value: StructuredQueriesCore._OptionalProtocol,
641641
Value == S.From.QueryOutput?,
642642
S.QueryValue == (),
643643
S.Joins == ()
@@ -669,9 +669,9 @@ extension FetchOne {
669669
scheduler: some ValueObservationScheduler & Hashable
670670
)
671671
where
672-
Value: _OptionalProtocol,
672+
Value: StructuredQueriesCore._OptionalProtocol,
673673
S.QueryValue: QueryRepresentable,
674-
S.QueryValue: _OptionalProtocol,
674+
S.QueryValue: StructuredQueriesCore._OptionalProtocol,
675675
Value == S.QueryValue.QueryOutput
676676
{
677677
sharedReader = SharedReader(
@@ -701,7 +701,7 @@ extension FetchOne {
701701
)
702702
where
703703
Value: QueryRepresentable,
704-
Value: _OptionalProtocol,
704+
Value: StructuredQueriesCore._OptionalProtocol,
705705
Value.QueryOutput == Value
706706
{
707707
sharedReader = SharedReader(
@@ -810,7 +810,7 @@ extension FetchOne {
810810
scheduler: some ValueObservationScheduler & Hashable
811811
) async throws -> FetchSubscription
812812
where
813-
Value: _OptionalProtocol,
813+
Value: StructuredQueriesCore._OptionalProtocol,
814814
Value == S.From.QueryOutput?,
815815
S.QueryValue == (),
816816
S.Joins == ()
@@ -842,9 +842,9 @@ extension FetchOne {
842842
scheduler: some ValueObservationScheduler & Hashable
843843
) async throws -> FetchSubscription
844844
where
845-
Value: _OptionalProtocol,
845+
Value: StructuredQueriesCore._OptionalProtocol,
846846
S.QueryValue: QueryRepresentable,
847-
S.QueryValue: _OptionalProtocol,
847+
S.QueryValue: StructuredQueriesCore._OptionalProtocol,
848848
Value == S.QueryValue.QueryOutput
849849
{
850850
try await sharedReader.load(
@@ -874,7 +874,7 @@ extension FetchOne {
874874
) async throws -> FetchSubscription
875875
where
876876
Value: QueryRepresentable,
877-
Value: _OptionalProtocol,
877+
Value: StructuredQueriesCore._OptionalProtocol,
878878
Value.QueryOutput == Value
879879
{
880880
try await sharedReader.load(
@@ -926,7 +926,7 @@ extension FetchOne: Equatable where Value: Equatable {
926926
animation: Animation
927927
)
928928
where
929-
Value: _OptionalProtocol,
929+
Value: StructuredQueriesCore._OptionalProtocol,
930930
Value: _Selection,
931931
Value.QueryOutput == Value
932932
{
@@ -968,7 +968,7 @@ extension FetchOne: Equatable where Value: Equatable {
968968
animation: Animation
969969
)
970970
where
971-
Value: _OptionalProtocol,
971+
Value: StructuredQueriesCore._OptionalProtocol,
972972
Value: StructuredQueriesCore.Table,
973973
Value.QueryOutput == Value
974974
{
@@ -1103,7 +1103,7 @@ extension FetchOne: Equatable where Value: Equatable {
11031103
animation: Animation
11041104
)
11051105
where
1106-
Value: _OptionalProtocol,
1106+
Value: StructuredQueriesCore._OptionalProtocol,
11071107
Value == S.From.QueryOutput?,
11081108
S.QueryValue == (),
11091109
S.Joins == ()
@@ -1133,9 +1133,9 @@ extension FetchOne: Equatable where Value: Equatable {
11331133
animation: Animation
11341134
)
11351135
where
1136-
Value: _OptionalProtocol,
1136+
Value: StructuredQueriesCore._OptionalProtocol,
11371137
S.QueryValue: QueryRepresentable,
1138-
S.QueryValue: _OptionalProtocol,
1138+
S.QueryValue: StructuredQueriesCore._OptionalProtocol,
11391139
Value == S.QueryValue.QueryOutput
11401140
{
11411141
self.init(
@@ -1164,7 +1164,7 @@ extension FetchOne: Equatable where Value: Equatable {
11641164
)
11651165
where
11661166
Value: QueryRepresentable,
1167-
Value: _OptionalProtocol,
1167+
Value: StructuredQueriesCore._OptionalProtocol,
11681168
Value.QueryOutput == Value
11691169
{
11701170
self.init(
@@ -1260,7 +1260,7 @@ extension FetchOne: Equatable where Value: Equatable {
12601260
animation: Animation
12611261
) async throws -> FetchSubscription
12621262
where
1263-
Value: _OptionalProtocol,
1263+
Value: StructuredQueriesCore._OptionalProtocol,
12641264
Value == S.From.QueryOutput?,
12651265
S.QueryValue == (),
12661266
S.Joins == ()
@@ -1285,9 +1285,9 @@ extension FetchOne: Equatable where Value: Equatable {
12851285
animation: Animation
12861286
) async throws -> FetchSubscription
12871287
where
1288-
Value: _OptionalProtocol,
1288+
Value: StructuredQueriesCore._OptionalProtocol,
12891289
S.QueryValue: QueryRepresentable,
1290-
S.QueryValue: _OptionalProtocol,
1290+
S.QueryValue: StructuredQueriesCore._OptionalProtocol,
12911291
Value == S.QueryValue.QueryOutput
12921292
{
12931293
try await load(statement, database: database, scheduler: .animation(animation))
@@ -1311,7 +1311,7 @@ extension FetchOne: Equatable where Value: Equatable {
13111311
) async throws -> FetchSubscription
13121312
where
13131313
Value: QueryRepresentable,
1314-
Value: _OptionalProtocol,
1314+
Value: StructuredQueriesCore._OptionalProtocol,
13151315
Value.QueryOutput == Value
13161316
{
13171317
try await load(statement, database: database, scheduler: .animation(animation))
@@ -1344,8 +1344,8 @@ private struct FetchOneStatementOptionalValueRequest<Value: QueryRepresentable>:
13441344
}
13451345

13461346
private struct FetchOneStatementOptionalProtocolRequest<
1347-
Value: QueryRepresentable & _OptionalProtocol
1348-
>: StatementKeyRequest where Value.QueryOutput: _OptionalProtocol {
1347+
Value: QueryRepresentable & StructuredQueriesCore._OptionalProtocol
1348+
>: StatementKeyRequest where Value.QueryOutput: StructuredQueriesCore._OptionalProtocol {
13491349
let statement: SQLQueryExpression<Value>
13501350
init(statement: some StructuredQueriesCore.Statement<Value>) {
13511351
self.statement = SQLQueryExpression(statement)

0 commit comments

Comments
 (0)