From 5b43abccde75014cb08020f282a815c345891047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Helge=20He=C3=9F?= Date: Thu, 2 Jan 2025 16:39:56 +0100 Subject: [PATCH] Convenience methods for adaptor-op callers that don't need op results Or provide a completion block. --- Sources/ZeeQL/Access/AdaptorChannel.swift | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Sources/ZeeQL/Access/AdaptorChannel.swift b/Sources/ZeeQL/Access/AdaptorChannel.swift index 4c7aa71..3edd63f 100644 --- a/Sources/ZeeQL/Access/AdaptorChannel.swift +++ b/Sources/ZeeQL/Access/AdaptorChannel.swift @@ -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) + } } /**