Hello all. About a year and a half ago I built a pure Kotlin SQL DSL (not an ORM) with a focus on supporting some complex SQL not supported by Exposed or Ktorm. This includes things like windows, CTEs, values relations and so on. I also tried to address design and quality-of-life issues in Exposed's SQL layer. This includes reliance on thread local state, awkward support for custom columns, mutable DSL elements and inconsistent casing of identifiers. The library has been used in production by myself and at least one other company for about a year without headaches. Anyone who is interested in this niche can find the project here:
https://github.com/mfwgenerics/koala
We also have a Slack channel
#koalaql. I'd love to support any new users or contributors to the project