File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Sources/StructuredQueriesCore Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments