Toshihiro Nakamura
10/28/2025, 8:27 AMtransaction {
val result = jdbcTemplate {
val title by arg("Read The Hobbit", Tasks.title)
build(
"""
select id, title from tasks
where title = /* $title */''
"""
)
}.execute { rs -> /* process results */ }
}
Use cases:
• Complex queries easier to write in raw SQL
• Mix SQL templates with Exposed DAO/DSL in the same transaction
PR: https://github.com/komapper/komapper/pull/1728
Any feedback or suggestions would be appreciated! 🙏