Skip to content

Commit

Permalink
Make the AdaptorOperation init's public
Browse files Browse the repository at this point in the history
We need to be able to construct those :-)
  • Loading branch information
helje5 committed Nov 18, 2024
1 parent 5814705 commit 5883a6f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Sources/ZeeQL/Access/AdaptorOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ public class AdaptorOperation: Comparable, EquatableType, SmartDescription {
/// Run when the operation did complete
open var completionBlock : (() -> ())?

init(entity: Entity) {
@inlinable
public init(entity: Entity) {
self.entity = entity
}
init(_ op: AdaptorOperation) {
@inlinable
public init(_ op: AdaptorOperation) {
entity = op.entity
adaptorOperator = op.adaptorOperator
attributes = op.attributes
Expand Down Expand Up @@ -119,3 +121,7 @@ public class AdaptorOperation: Comparable, EquatableType, SmartDescription {
}
}
}

#if swift(>=5.5)
extension AdaptorOperation.Operator: Sendable {}
#endif

0 comments on commit 5883a6f

Please sign in to comment.