3 ms·
I've read a lot of good things about https://docs.sqlc.dev/en/latest/tutorials/getting-started-postgresql.html https://docs.sqlc.dev/en/latest/tutorials/getting
by eknkc 3y ago
I've read a lot of good things about https://docs.sqlc.dev/en/latest/tutorials/getting-started-postgresql.html https://docs.sqlc.dev/en/latest/tutorials/getting-started-po... which does a similar thing on Go. Codegen over predefined sql queries seem like a good idea.
- madisp 3y agoJVM/Kotlin ecosystem has a similar approach with SqlDelight - https://github.com/cashapp/sqldelight https://github.com/cashapp/sqldelight. I've been using it for a while and it's quite nice to use.
- thefounder 3y agoFrom experience…code generation is not the way. I’ve had my own custom solution both for databases and web services. The maintenance of the library itself and the code you are working as well(always go generate after each change)