@@ -273,11 +273,11 @@ struct QueriesQueries: ConnectionWrapper, Sendable {
273273 """,
274274 transaction: tx
275275 )
276- try statement.bind(value: input.textNotNull, to: 1 )
277- try statement.bind(value: input.textNullable, to: 2 )
278- try statement.bind(value: input.dateWithAdapterNotNull, to: 3, using: adapters.date, as: Int.self)
279- try statement.bind(value: input.dateWithAdapterNullable, to: 4, using: adapters.date, as: Int.self)
280- try statement.bind(value: input.dateWithCustomAdapter, to: 5, using: adapters.customDate, as: String.self)
276+ try statement.bind(value: input.textNotNull)
277+ try statement.bind(value: input.textNullable)
278+ try statement.bind(value: input.dateWithAdapterNotNull, using: adapters.date, as: Int.self)
279+ try statement.bind(value: input.dateWithAdapterNullable, using: adapters.date, as: Int.self)
280+ try statement.bind(value: input.dateWithCustomAdapter, using: adapters.customDate, as: String.self)
281281 return try statement.fetchOne(adapters: adapters)
282282 },
283283 insertBarReturningIntPk: DatabaseQuery<InsertBarReturningIntPkInput, Int>(
@@ -291,8 +291,8 @@ struct QueriesQueries: ConnectionWrapper, Sendable {
291291 """,
292292 transaction: tx
293293 )
294- try statement.bind(value: input.customNameIntPk, to: 1 )
295- try statement.bind(value: input.barNotNullText, to: 2 )
294+ try statement.bind(value: input.customNameIntPk)
295+ try statement.bind(value: input.barNotNullText)
296296 return try statement.fetchOne()
297297 },
298298 insertBarReturningExtraColumn: DatabaseQuery<InsertBarReturningExtraColumnInput, InsertBarReturningExtraColumnOutput>(
@@ -306,8 +306,8 @@ struct QueriesQueries: ConnectionWrapper, Sendable {
306306 """,
307307 transaction: tx
308308 )
309- try statement.bind(value: input.intPk, to: 1 )
310- try statement.bind(value: input.barNotNullText, to: 2 )
309+ try statement.bind(value: input.intPk)
310+ try statement.bind(value: input.barNotNullText)
311311 return try statement.fetchOne()
312312 },
313313 selectSingleFoo: DatabaseQuery<Int, Foo?>(
@@ -321,7 +321,7 @@ struct QueriesQueries: ConnectionWrapper, Sendable {
321321 """,
322322 transaction: tx
323323 )
324- try statement.bind(value: input, to: 1 )
324+ try statement.bind(value: input)
325325 return try statement.fetchOne(adapters: adapters)
326326 },
327327 hasEmbeddedFoo: DatabaseQuery<Int, [HasEmbeddedFooOutput]>(
@@ -338,7 +338,7 @@ struct QueriesQueries: ConnectionWrapper, Sendable {
338338 """,
339339 transaction: tx
340340 )
341- try statement.bind(value: input, to: 1 )
341+ try statement.bind(value: input)
342342 return try statement.fetchAll(adapters: adapters)
343343 },
344344 bothColumnsShouldNotBeNullable: DatabaseQuery<(), [BothColumnsShouldNotBeNullableOutput]>(
@@ -366,8 +366,8 @@ struct QueriesQueries: ConnectionWrapper, Sendable {
366366 """,
367367 transaction: tx
368368 )
369- try statement.bind(value: input.intPk, to: 1 )
370- try statement.bind(value: input.textNotNull, to: 2 )
369+ try statement.bind(value: input.intPk)
370+ try statement.bind(value: input.textNotNull)
371371 return try statement.fetchOne(adapters: adapters)
372372 },
373373 inputIsArray: DatabaseQuery<[Int], ()>(
@@ -382,7 +382,7 @@ struct QueriesQueries: ConnectionWrapper, Sendable {
382382 transaction: tx
383383 )
384384 for element in input {
385- try statement.bind(value: element, to: 1 )
385+ try statement.bind(value: element)
386386 }
387387 _ = try statement.step()
388388 },
@@ -398,9 +398,9 @@ struct QueriesQueries: ConnectionWrapper, Sendable {
398398 transaction: tx
399399 )
400400 for element in input.intPks {
401- try statement.bind(value: element, to: 1 )
401+ try statement.bind(value: element)
402402 }
403- try statement.bind(value: input.barNotNullText, to: 2 )
403+ try statement.bind(value: input.barNotNullText)
404404 _ = try statement.step()
405405 }
406406 )
0 commit comments