2018-05-03 4:59 GMT+02:00 xragons <[email protected]>: > Does this look right and efficient or Is there a better way to do this? >
Yes, that looks about right > My 2nd concern is, about try/catch and closing connections. As you can see > in the first example, I'm using try catch blocks AND i'm also manually > closing all the open statements. In the 2nd example, if I don't include a > try/catch would it still close the opened connections? > I think I was looking at one of your tutorials on github and saw something > similar. Furthermore, is a try/catch/closing statements needed for other > queries as well? (update, delete, etc) or does JOOQ handle those too? > jOOQ manages resources for you. For a list of differences between jOOQ and JDBC, see this page here: https://www.jooq.org/doc/latest/manual/sql-execution/comparison-with-jdbc I think I'm going to improve that page with actual examples: https://github.com/jOOQ/jOOQ/issues/6102 Cheers, Lukas -- You received this message because you are subscribed to the Google Groups "jOOQ User Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
