Guest User

Untitled

a guest
Feb 6th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. (def datasource (hikari/make-datasource {:adapter "postgresql"
  2. :url "jdbc:postgresql://localhost:5432/somedb"}))
  3.  
  4. ;; Doesn't seem to release the connections, it can only run `pool-size` times
  5. (jdbc/with-db-connection [conn {:datasource datasource}]
  6. (sql/some-hugsql-query conn))
Add Comment
Please, Sign In to add comment