diff --git a/sql-dsl-with-mapper/src/main/kotlin/com/huanshankeji/exposedvertxsqlclient/sql/mapping/DatabaseClientSqlWithMapper.kt b/sql-dsl-with-mapper/src/main/kotlin/com/huanshankeji/exposedvertxsqlclient/sql/mapping/DatabaseClientSqlWithMapper.kt index 2563e6a..b45c68e 100644 --- a/sql-dsl-with-mapper/src/main/kotlin/com/huanshankeji/exposedvertxsqlclient/sql/mapping/DatabaseClientSqlWithMapper.kt +++ b/sql-dsl-with-mapper/src/main/kotlin/com/huanshankeji/exposedvertxsqlclient/sql/mapping/DatabaseClientSqlWithMapper.kt @@ -35,6 +35,12 @@ suspend fun DatabaseClient<*>.selectWithMapper( ) = executeQueryWithMapper(columnSet.select(dataQueryMapper.neededColumns).buildQuery(), dataQueryMapper) +@ExperimentalEvscApi +suspend fun DatabaseClient<*>.selectWithMapper( + columnSet: ColumnSet, dataQueryMapper: DataQueryMapper +) = + selectWithMapper(columnSet, dataQueryMapper) { this } + @ExperimentalEvscApi suspend fun DatabaseClient<*>.insertWithMapper( table: Table, data: Data, dataUpdateMapper: DataUpdateMapper