batchSelect

suspend fun <E> DatabaseClient<*>.batchSelect(data: Iterable<E>, buildQuery: (E) -> Query, getFieldExpressionSetWithExposedTransaction: Boolean = config.autoExposedTransaction): Sequence<RowSet<ResultRow>>(source)

This function may be very rarely used, as eq conditions of multiple statements can usually be combined into an inList or eq select query.


suspend fun <T : ColumnSet, E> DatabaseClient<*>.batchSelect(columnSet: T, data: Iterable<E>, buildQuery: T.(E) -> Query): Sequence<RowSet<ResultRow>>(source)

Deprecated

This function is buggy. The field expression set of the `fieldSet` parameter may be different from the those of the queries. Use the new overload without the `fieldSet` parameter instead.

Replace with

this.batchSelect(data, { columnSet.buildQuery(it) })