Skip to content

Commit 1974bb0

Browse files
committed
wip
1 parent 0723ede commit 1974bb0

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Sources/StructuredQueriesCore/PrimaryKeyed.swift

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ extension TableDraft where PrimaryTable.PrimaryKey: QueryBindable {
118118
public static func find(
119119
_ primaryKey: some QueryExpression<PrimaryTable.TableColumns.PrimaryKey>
120120
) -> Where<Self> {
121-
Self.find([primaryKey])
121+
find([primaryKey])
122122
}
123123

124124
/// A where clause filtered by primary keys.
@@ -139,7 +139,7 @@ extension Where where From: PrimaryKeyedTable, From.PrimaryKey: QueryBindable {
139139
/// - Parameter primaryKey: A primary key.
140140
/// - Returns: A where clause with the added primary key.
141141
public func find(_ primaryKey: some QueryExpression<From.TableColumns.PrimaryKey>) -> Self {
142-
self.find([primaryKey])
142+
find([primaryKey])
143143
}
144144

145145
/// Adds a primary key condition to a where clause.
@@ -162,7 +162,7 @@ extension Where where From: TableDraft, From.PrimaryTable.PrimaryKey: QueryBinda
162162
public func find(_ primaryKey: some QueryExpression<From.PrimaryTable.TableColumns.PrimaryKey>)
163163
-> Self
164164
{
165-
self.find([primaryKey])
165+
find([primaryKey])
166166
}
167167

168168
/// Adds a primary key condition to a where clause.
@@ -183,7 +183,7 @@ extension Select where From: PrimaryKeyedTable, From.PrimaryKey: QueryBindable {
183183
/// - Parameter primaryKey: A primary key identifying a table row.
184184
/// - Returns: A select statement filtered by the given key.
185185
public func find(_ primaryKey: some QueryExpression<From.TableColumns.PrimaryKey>) -> Self {
186-
self.and(From.find(primaryKey))
186+
and(From.find(primaryKey))
187187
}
188188

189189
/// A select statement filtered by a sequence of primary keys.
@@ -193,7 +193,7 @@ extension Select where From: PrimaryKeyedTable, From.PrimaryKey: QueryBindable {
193193
public func find(
194194
_ primaryKeys: some Sequence<some QueryExpression<From.TableColumns.PrimaryKey>>
195195
) -> Self {
196-
self.and(From.find(primaryKeys))
196+
and(From.find(primaryKeys))
197197
}
198198
}
199199

@@ -206,7 +206,7 @@ extension Select where From: TableDraft, From.PrimaryTable.PrimaryKey: QueryBind
206206
public func find(
207207
_ primaryKey: some QueryExpression<From.PrimaryTable.TableColumns.PrimaryKey>
208208
) -> Self {
209-
self.and(From.find(primaryKey))
209+
and(From.find(primaryKey))
210210
}
211211

212212
/// A select statement filtered by a sequence of primary keys.
@@ -216,7 +216,7 @@ extension Select where From: TableDraft, From.PrimaryTable.PrimaryKey: QueryBind
216216
public func find(
217217
_ primaryKeys: some Sequence<some QueryExpression<From.PrimaryTable.TableColumns.PrimaryKey>>
218218
) -> Self {
219-
self.and(From.find(primaryKeys))
219+
and(From.find(primaryKeys))
220220
}
221221
}
222222

@@ -227,7 +227,7 @@ extension Update where From: PrimaryKeyedTable, From.PrimaryKey: QueryBindable {
227227
/// - Parameter primaryKey: A primary key identifying a table row.
228228
/// - Returns: An update statement filtered by the given key.
229229
public func find(_ primaryKey: some QueryExpression<From.TableColumns.PrimaryKey>) -> Self {
230-
self.find([primaryKey])
230+
find([primaryKey])
231231
}
232232

233233
/// An update statement filtered by a sequence of primary keys.
@@ -250,7 +250,7 @@ extension Update where From: TableDraft, From.PrimaryTable.PrimaryKey: QueryBind
250250
public func find(_ primaryKey: some QueryExpression<From.PrimaryTable.TableColumns.PrimaryKey>)
251251
-> Self
252252
{
253-
self.find([primaryKey])
253+
find([primaryKey])
254254
}
255255

256256
/// An update statement filtered by a sequence of primary keys.
@@ -271,7 +271,7 @@ extension Delete where From: PrimaryKeyedTable, From.PrimaryKey: QueryBindable {
271271
/// - Parameter primaryKey: A primary key identifying a table row.
272272
/// - Returns: A delete statement filtered by the given key.
273273
public func find(_ primaryKey: some QueryExpression<From.TableColumns.PrimaryKey>) -> Self {
274-
self.find([primaryKey])
274+
find([primaryKey])
275275
}
276276

277277
/// A delete statement filtered by a sequence of primary keys.
@@ -294,7 +294,7 @@ extension Delete where From: TableDraft, From.PrimaryTable.PrimaryKey: QueryBind
294294
public func find(_ primaryKey: some QueryExpression<From.PrimaryTable.TableColumns.PrimaryKey>)
295295
-> Self
296296
{
297-
self.find([primaryKey])
297+
find([primaryKey])
298298
}
299299

300300
/// A delete statement filtered by a sequence of primary keys.

0 commit comments

Comments
 (0)