Skip to content

Commit 5ea01b6

Browse files
authored
Fix deprecated ambiguous overload (#162)
We were using this API in a demo still. Let's fix the compiler ambiguity, though probably no rush to release a patch for this unless something else comes up.
1 parent 49f18c2 commit 5ea01b6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Sources/StructuredQueriesSQLiteCore/Internal/Deprecations.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,11 @@ extension PrimaryKeyedTable {
8686
@available(
8787
*, deprecated, message: "Use a trailing closure, instead: 'Table.upsert { draft }'"
8888
)
89-
public static func upsert(_ row: Draft) -> InsertOf<Self> {
90-
upsert { row }
89+
public static func upsert(
90+
or conflictResolution: ConflictResolution,
91+
_ row: Draft
92+
) -> InsertOf<Self> {
93+
upsert(or: conflictResolution) { row }
9194
}
9295
}
9396

0 commit comments

Comments
 (0)