@@ -49,8 +49,8 @@ extension PrimaryKeyedTable {
4949 ///
5050 /// - Parameter primaryKey: A primary key identifying a table row.
5151 /// - Returns: A `WHERE` clause.
52- public static func find( _ primaryKey: TableColumns . PrimaryKey ) -> Where < Self > {
53- Self . where { $0. primaryKey. eq ( primaryKey) }
52+ public static func find( _ primaryKey: TableColumns . PrimaryKey . QueryOutput ) -> Where < Self > {
53+ Self . where { $0. primaryKey. eq ( TableColumns . PrimaryKey ( queryOutput : primaryKey) ) }
5454 }
5555}
5656
@@ -59,8 +59,8 @@ extension Where where From: PrimaryKeyedTable {
5959 ///
6060 /// - Parameter primaryKey: A primary key.
6161 /// - Returns: A where clause with the added primary key.
62- public func find( _ primaryKey: From . TableColumns . PrimaryKey ) -> Self {
63- self . where { $0. primaryKey. eq ( primaryKey) }
62+ public func find( _ primaryKey: From . TableColumns . PrimaryKey . QueryOutput ) -> Self {
63+ self . where { $0. primaryKey. eq ( From . TableColumns . PrimaryKey ( queryOutput : primaryKey) ) }
6464 }
6565}
6666
@@ -69,8 +69,8 @@ extension Update where From: PrimaryKeyedTable {
6969 ///
7070 /// - Parameter primaryKey: A primary key identifying a table row.
7171 /// - Returns: An update statement filtered by the given key.
72- public func find( _ primaryKey: From . TableColumns . PrimaryKey ) -> Self {
73- self . where { $0. primaryKey. eq ( primaryKey) }
72+ public func find( _ primaryKey: From . TableColumns . PrimaryKey . QueryOutput ) -> Self {
73+ self . where { $0. primaryKey. eq ( From . TableColumns . PrimaryKey ( queryOutput : primaryKey) ) }
7474 }
7575}
7676
@@ -79,8 +79,8 @@ extension Delete where From: PrimaryKeyedTable {
7979 ///
8080 /// - Parameter primaryKey: A primary key identifying a table row.
8181 /// - Returns: A delete statement filtered by the given key.
82- public func find( _ primaryKey: From . TableColumns . PrimaryKey ) -> Self {
83- self . where { $0. primaryKey. eq ( primaryKey) }
82+ public func find( _ primaryKey: From . TableColumns . PrimaryKey . QueryOutput ) -> Self {
83+ self . where { $0. primaryKey. eq ( From . TableColumns . PrimaryKey ( queryOutput : primaryKey) ) }
8484 }
8585}
8686
@@ -89,7 +89,7 @@ extension Select where From: PrimaryKeyedTable {
8989 ///
9090 /// - Parameter primaryKey: A primary key identifying a table row.
9191 /// - Returns: A select statement filtered by the given key.
92- public func find( _ primaryKey: From . TableColumns . PrimaryKey ) -> Self {
92+ public func find( _ primaryKey: From . TableColumns . PrimaryKey . QueryOutput ) -> Self {
9393 self . and ( From . find ( primaryKey) )
9494 }
9595}
0 commit comments