jooq-postgresql-json icon indicating copy to clipboard operation
jooq-postgresql-json copied to clipboard

Feature request: JSON string placeholder

Open whisper-bye opened this issue 2 years ago • 1 comments

From this

JsonbDSL.field("{\"id\": \"1337\"}")

To this

JsonbDSL.field("{\"id\":{0}}", "1337")

whisper-bye avatar Oct 27 '22 12:10 whisper-bye

Thanks for the suggestion! Unfortunately maintaining this project is a bit on the backburner for me because I don't use it myself anymore (I have no projects where it's applicable).

Having said that, with this particular feature I also have some worries as a bad implementation could lead to the potential for SQL injection. If possible, existing JOOQ features should be used for the string placeholder functionality.

I might have some time to look into it this week but I can't promise that unfortunately. If you feel up to creating a merge request that would be greatly appreciated.

t9t avatar Oct 30 '22 07:10 t9t