funcool

A channel for discussing and asking questions about Funcool libraries https://github.com/funcool/
Yehonathan Sharvit 2017-03-22T15:44:06.668456Z

Hello there

Yehonathan Sharvit 2017-03-22T15:44:21.675067Z

A question about funcool/clojure.jdbc

Yehonathan Sharvit 2017-03-22T15:44:51.687603Z

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

Yehonathan Sharvit 2017-03-22T16:09:01.301579Z

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?

dm3 2017-03-22T16:21:07.584686Z

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

dm3 2017-03-22T16:22:02.606183Z

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

Yehonathan Sharvit 2017-03-22T18:49:19.951925Z

Thanks @dm3

Yehonathan Sharvit 2017-03-22T18:50:09.969510Z

@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

niwinz 2017-03-22T18:51:09.990336Z

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

Yehonathan Sharvit 2017-03-22T18:52:43.024578Z

I will do better

Yehonathan Sharvit 2017-03-22T18:52:50.026855Z

I will open a PR

👏 2
Yehonathan Sharvit 2017-03-22T18:57:21.123217Z

https://github.com/funcool/clojure.jdbc/pull/35