sql

All things SQL and JDBC...
2021-06-07T18:59:17.126500Z

is there a way in clojure.java.jdbc to explicitly not call addBatch if the driver doesn’t support that? <https://github.com/clojure/java.jdbc/blob/master/src/main/clojure/clojure/java/jdbc.clj#L1054>

2021-06-07T18:59:25.126800Z

realizing that it will absolutely kill the performance, I know

seancorfield 2021-06-07T19:02:59.128700Z

@jeffrey.wayne.evans I’d recommend upgrading/migrating to next.jdbc where that’s not an issue — only execute-batch! uses .addBatch so you can avoid it if your DB does not support it; everything else uses the generic .execute function. clojure.java.jdbc will only get security fixes at this point (it is “stable” and not maintained beyond that).

2021-06-07T19:15:20.129400Z

thanks, I’ll make sure to open an issue for us to do that (if there isn’t one already). unfortunately it’s not going to be in the cards for the “small” piece of work I’m doing now

seancorfield 2021-06-07T19:37:28.129900Z

You could always add next.jdbc as an additional dep and use it just for this one situation 🙂

1
seancorfield 2021-06-07T19:37:39.130100Z

(we use both libs side-by-side)