Skip to content

Commit

Permalink
Add a version of selectWithMapper without buildQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
ShreckYe committed Nov 25, 2024
1 parent 4a47053 commit 47d4006
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ suspend fun <Data : Any> DatabaseClient<*>.selectWithMapper(
) =
executeQueryWithMapper(columnSet.select(dataQueryMapper.neededColumns).buildQuery(), dataQueryMapper)

@ExperimentalEvscApi
suspend fun <Data : Any> DatabaseClient<*>.selectWithMapper(
columnSet: ColumnSet, dataQueryMapper: DataQueryMapper<Data>
) =
selectWithMapper(columnSet, dataQueryMapper) { this }

@ExperimentalEvscApi
suspend fun <Data : Any> DatabaseClient<*>.insertWithMapper(
table: Table, data: Data, dataUpdateMapper: DataUpdateMapper<Data>
Expand Down

0 comments on commit 47d4006

Please sign in to comment.