Fork me on GitHub
#funcool
<
2017-03-22
>
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?

dm316:03:07

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

dm316:03:02

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 https://funcool.github.io/clojure.jdbc/latest/#install

niwinz18:03:09

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