ColumnNameMapper

Creates a mapper that converts each row into a Map<String, Any?>.

Keys in the map correspond to column labels (aliases) from the SQL query. Values are automatically converted to their appropriate Kotlin types.

Ideal for:

  • Dynamic queries where the result structure is not known at compile time.

  • Reporting and ad-hoc data analysis.

  • Simple queries where defining a data class is unnecessary.