Hello. Is it possible to create `Map of <Column...
# exposed
d
Hello. Is it possible to create
Map 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:
Copy code
tableEntity.update({ where }){ updateStatement ->
        updateColumns.forEach{ updateStatement.set(it.key, it.value) }
}