3 ms·
In Java I like to use JOOQ for this. It generates classes and constants from your database. Then you can use the library to build your queries using those gen
by sbov 7y ago
In Java I like to use JOOQ for this. It generates classes and constants from your database. Then you can use the library to build your queries using those generated constants and classes.
This gives you type safety and the ability to use IDE refactoring tools.
- asdkhadsj 7y agoNice. Yea in Rust I use Diesel for this as well. I imagine any ORM worth its weight basically handles this same thing. Even code generation from DB is basically a verification of the schema.