This commit is contained in:
Gwendal Roué committed 2025-05-11 11:21:48 +02:00
1 parent 2316fb3831
commit fedcdef65e
1 file changed
+2 -2
@@ -1050,11 +1050,11 @@ extension QueryInterfaceRequest {
public func updateAll(
_ db: Database,
onConflict conflictResolution: Database.ConflictResolution? = nil,
assignments: (RowDecoder.ColumnsProvider) -> ColumnAssignment
assignment: (RowDecoder.ColumnsProvider) -> ColumnAssignment
) throws -> Int
where RowDecoder: TableRecord
{
try updateAll(db, onConflict: conflictResolution, [assignments(RowDecoder.columns)])
try updateAll(db, onConflict: conflictResolution, [assignment(RowDecoder.columns)])
}
/// Updates matching rows, and returns the number of updated rows.