{"repo":"metabase/connection-pool","free":true,"listed":false,"github":"https://github.com/metabase/connection-pool","clone":"git clone https://github.com/metabase/connection-pool.git","description":"Connection pools for JDBC databases. Simple wrapper around C3P0.","language":"Clojure","stars":16,"topics":["metabase","c3p0","jdbc","connection-pool","connection-pooling","connection-pooler","clojure","database","clojure-jdbc"],"license":"EPL-2.0","category":"databases-storage","readme_excerpt":"Creating a Connection Pool From a clojure.java.jdbc spec You can create a C3P0 connection pool with any clojure.java.jdbc connection spec map with :subname and :subprotocol keys. connection-pool-spec will return a clojure.java.jdbc connection spec you can use directly: (You will almost certainly want to store your pool somewhere, such as in an atom). From a JDBC URL String: You can create a pooled DataSource (e.g., for use with next-jdbc ) by calling pooled-data-source-from-url : Configuring the connection pool You can set connection pool options such as size in a c3p0.properties file, or by passing them as a map to connection-pool-spec : See https://www.mchange.com/projects/c3p0/#configuration properties for a list of all options. Destroying connection pools destroy-connection-pool! will destroy the connection pool you created: Legal Stuff Copyright © 2019 Metabase, Inc. This project is licensed under the Eclipse Public License, same as Clojure.","default_branch":null,"files":null,"tree":[],"storefront":"/r/metabase","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/metabase/connection-pool/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}