Using JDBI to generate sql #2661
-
Hi, I'm using JDBI to populate a database from raw json files and it works perfectly. I'm using the Dao pattern and resolve the files with sql statements from the classpath like:
e.g.:
Now besides populating this database, I would like to create a *.sql with the plain SQL statements which were executed. As I already have the JDBI implementation in place and the sql files (see example above) to insert the data, I wonder if i could use JDBI to generate this *.sql file by:
Would this be possible with JDBI or should I look for something else? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @marceloverdijk , Jdbi currently sees generating SQL as out of scope for this project. There are already other libraries like jOOQ that do this and we don't see the need to duplicate their work at this time. |
Beta Was this translation helpful? Give feedback.
Hi @marceloverdijk , Jdbi currently sees generating SQL as out of scope for this project. There are already other libraries like jOOQ that do this and we don't see the need to duplicate their work at this time.