Skip to content

Commit 618f8bd

Browse files
committed
wip
1 parent 2c31653 commit 618f8bd

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Sources/StructuredQueriesCore/Triggers.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ public struct TemporaryTrigger<On: Table>: Statement {
233233
/// - condition: A predicate that must be satisfied to perform the given statement.
234234
/// - Returns: An `AFTER INSERT` trigger operation.
235235
public static func insert(
236-
forEachRow perform: (New) -> some Statement,
237-
when condition: ((New) -> any QueryExpression<Bool>)? = nil
236+
forEachRow perform: (_ new: New) -> some Statement,
237+
when condition: ((_ new: New) -> any QueryExpression<Bool>)? = nil
238238
) -> Self {
239239
Self(
240240
kind: .insert(operation: perform(On.as(_New.self).columns).query),
@@ -249,8 +249,8 @@ public struct TemporaryTrigger<On: Table>: Statement {
249249
/// - condition: A predicate that must be satisfied to perform the given statement.
250250
/// - Returns: An `AFTER UPDATE` trigger operation.
251251
public static func update(
252-
forEachRow perform: (Old, New) -> some Statement,
253-
when condition: ((Old, New) -> any QueryExpression<Bool>)? = nil
252+
forEachRow perform: (_ old: Old, _ new: New) -> some Statement,
253+
when condition: ((_ old: Old, _ new: New) -> any QueryExpression<Bool>)? = nil
254254
) -> Self {
255255
update(
256256
of: { _ in },
@@ -268,8 +268,8 @@ public struct TemporaryTrigger<On: Table>: Statement {
268268
/// - Returns: An `AFTER UPDATE` trigger operation.
269269
public static func update<each Column>(
270270
of columns: (On.TableColumns) -> (repeat TableColumn<On, each Column>),
271-
forEachRow perform: (Old, New) -> some Statement,
272-
when condition: ((Old, New) -> any QueryExpression<Bool>)? = nil
271+
forEachRow perform: (_ old: Old, _ new: New) -> some Statement,
272+
when condition: ((_ old: Old, _ new: New) -> any QueryExpression<Bool>)? = nil
273273
) -> Self {
274274
var columnNames: [String] = []
275275
for column in repeat each columns(On.columns) {
@@ -291,8 +291,8 @@ public struct TemporaryTrigger<On: Table>: Statement {
291291
/// - condition: A predicate that must be satisfied to perform the given statement.
292292
/// - Returns: An `AFTER DELETE` trigger operation.
293293
public static func delete(
294-
forEachRow perform: (Old) -> some Statement,
295-
when condition: ((Old) -> any QueryExpression<Bool>)? = nil
294+
forEachRow perform: (_ old: Old) -> some Statement,
295+
when condition: ((_ old: Old) -> any QueryExpression<Bool>)? = nil
296296
) -> Self {
297297
Self(
298298
kind: .delete(operation: perform(On.as(_Old.self).columns).query),

0 commit comments

Comments
 (0)