|
|
|
|
|
by cies
648 days ago
|
|
We use jOOQ, and love it. But sqlc also makes nice trade offs. I see it does Kotlin generation: if this lib was around when we picked jOOQ, I's certainly had considered it. Differences: * jOOQ is an eDSL with an optional schema-to-classes generator * you write jOOQ queries in Java (or Kotlin as we do) * there's quite a bit of type-safety added when using the generator: the schema needs to be match the queries you write or you get compile errors * jOOQ queries are built are run time adding a little overhead that sqlc does not * writing jOOQ is very close writing SQL (a very thin abstraction), sqlc is "just SQL" it seems |
|