Das135
07/22/2020, 7:28 AMMap of <Columns, Values>
or List of Pairs<Column, Value>
and then use this map in update statement when updating rows?
I tried to create Map<Column<*>, Any>
and fill it with KV pairs, but in update statement there is problem with type inferrence ("No set method providing array access"
) -> statement requires something like Map<Column<Any>, Any>
Is there any way to do it ?
I need something like this:
tableEntity.update({ where }){ updateStatement ->
updateColumns.forEach{ updateStatement.set(it.key, it.value) }
}