Skip to content

Commit

Permalink
Convenience methods for adaptor-op callers that don't need op results
Browse files Browse the repository at this point in the history
Or provide a completion block.
  • Loading branch information
helje5 committed Jan 2, 2025
1 parent e1edeac commit 5b43abc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Sources/ZeeQL/Access/AdaptorChannel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,18 @@ public extension AdaptorChannel {
return affectedRows
}

// MARK: - Adaptor Operations

@inlinable
func performAdaptorOperations(_ ops : [ AdaptorOperation ]) throws {
var ops = ops
try performAdaptorOperations(&ops)
}
@inlinable
func performAdaptorOperation(_ op : AdaptorOperation) throws {
var op = op
try performAdaptorOperation(&op)
}
}

/**
Expand Down

0 comments on commit 5b43abc

Please sign in to comment.