Hi everyone! :wave: I’m working on a new module...
# exposed
t
Hi everyone! 👋 I’m working on a new module that brings Komapper’s SQL template engine to Exposed, and I’d love to get your feedback. What it does: Execute raw SQL queries with type-safe parameter binding inside Exposed transactions. Example:
Copy code
transaction {
      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! 🙏