Fork me on GitHub
Yehonathan Sharvit15:03:21

A question about funcool/clojure.jdbc

Yehonathan Sharvit15:03:51

Do I have to add manually the appropriate java driver into my project.clj?

Yehonathan Sharvit16:03:01

Another question: For a web server that emits 2 sql requests on each API call, does it need to open and close the connection on each api request or use the same connection for all the requests without closing it?


you should include the JDBC drivers for the database you’re using


also you should be using a connection pool - then you can open/close (take/return) the connection on every statement

Yehonathan Sharvit18:03:09

@niwinz It would be nice to add a sentence about the need to manually include the java driver on the project.clj in


completely agree, can you open an issue for that please?