@@ -89,7 +89,7 @@ class AsyncOneToManies${n}SQLToOption[A, ${B1_to_BN(
89
89
extends AnyVal
90
90
with AsyncSQLToOption[Z] {
91
91
override def future()(implicit session: AsyncDBSession, cxt: ExecutionContext = ECGlobal): Future[Option[Z]] = {
92
- session.oneToManies ${n}Iterable(underlying.statement, underlying.rawParameters.toSeq: _ *)(underlying.extractOne)(
92
+ session.oneToManies ${n}Iterable(underlying.statement, underlying.rawParameters.toSeq*)(underlying.extractOne)(
93
93
${extractTo(n)}
94
94
)(underlying.transform).map {
95
95
case Nil => None
@@ -117,7 +117,7 @@ class AsyncOneToManies${n}SQLToIterable[A, ${B1_to_BN(
117
117
extends AnyVal
118
118
with AsyncSQLToIterable[Z] {
119
119
override def future()(implicit session: AsyncDBSession, cxt: ExecutionContext = ECGlobal): Future[Iterable[Z]] = {
120
- session.oneToManies ${n}Iterable(underlying.statement, underlying.rawParameters.toSeq: _ *)(underlying.extractOne)(
120
+ session.oneToManies ${n}Iterable(underlying.statement, underlying.rawParameters.toSeq*)(underlying.extractOne)(
121
121
${extractTo(n)}
122
122
)(underlying.transform)
123
123
}
@@ -141,7 +141,7 @@ class AsyncOneToManies${n}SQLToList[A, ${B1_to_BN(
141
141
extends AnyVal
142
142
with AsyncSQLToList[Z] {
143
143
override def future()(implicit session: AsyncDBSession, cxt: ExecutionContext = ECGlobal): Future[List[Z]] = {
144
- val iterable = session.oneToManies ${n}Iterable(underlying.statement, underlying.rawParameters.toSeq: _ *)(underlying.extractOne)(
144
+ val iterable = session.oneToManies ${n}Iterable(underlying.statement, underlying.rawParameters.toSeq*)(underlying.extractOne)(
145
145
${extractTo(n)}
146
146
)(underlying.transform)
147
147
iterable.map(_.toList)
@@ -168,7 +168,7 @@ class AsyncOneToManies${n}SQLToList[A, ${B1_to_BN(
168
168
): Future[Iterable[Z]] = {
169
169
oneToManies ${n}Iterable[A, ${B1_to_BN (
170
170
n
171
- )}, Z](statement, parameters: _ *)(extractOne)(
171
+ )}, Z](statement, parameters*)(extractOne)(
172
172
${(1 to n).map(" extractTo" + _).mkString(" , " )}
173
173
)(transform)
174
174
} """
@@ -220,7 +220,7 @@ class AsyncOneToManies${n}SQLToList[A, ${B1_to_BN(
220
220
}
221
221
}
222
222
223
- connection.sendPreparedStatement(statement, _parameters: _ *).map { result =>
223
+ connection.sendPreparedStatement(statement, _parameters*).map { result =>
224
224
result.rows.map { ars =>
225
225
new AsyncResultSetIterator(ars).foldLeft(
226
226
LinkedHashMap[A, ( ${seqB(n)})]())(processResultSet).map {
0 commit comments