Skip to content

Commit a3de95c

Browse files
committed
find update remove later
1 parent e79b469 commit a3de95c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/StructuredQueriesCore/PrimaryKeyed.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ extension PrimaryKeyedTable {
8181
///
8282
/// - Parameter primaryKey: A primary key identifying a table row.
8383
/// - Returns: A `WHERE` clause.
84-
public static func find(_ primaryKey: TableColumns.PrimaryKey.QueryOutput) -> Where<Self> {
85-
Self.where { $0.primaryKey.eq(TableColumns.PrimaryKey(queryOutput: primaryKey)) }
84+
public static func find(_ primaryKey: some QueryExpression<TableColumns.PrimaryKey>) -> Where<Self> {
85+
Self.where { $0.primaryKey.eq(primaryKey) }
8686
}
8787
}
8888

@@ -131,7 +131,7 @@ extension Select where From: PrimaryKeyedTable {
131131
///
132132
/// - Parameter primaryKey: A primary key identifying a table row.
133133
/// - Returns: A select statement filtered by the given key.
134-
public func find(_ primaryKey: From.TableColumns.PrimaryKey.QueryOutput) -> Self {
134+
public func find(_ primaryKey: some QueryExpression<From.TableColumns.PrimaryKey>) -> Self {
135135
self.and(From.find(primaryKey))
136136
}
137137
}

0 commit comments

Comments
 (0)