Logic for creating and managing connection pools for SQL JDBC drivers. Implementations for connection-related driver multimethods for SQL JDBC drivers.
Logic for creating and managing connection pools for SQL JDBC drivers. Implementations for connection-related driver multimethods for SQL JDBC drivers.
(can-connect? driver details)
Default implementation of driver/can-connect?
for SQL JDBC drivers. Checks whether we can perform a simple SELECT 1
query.
Default implementation of `driver/can-connect?` for SQL JDBC drivers. Checks whether we can perform a simple `SELECT 1` query.
(connection-details->spec driver details-map)
Given a Database details-map
, return a JDBC connection spec.
Given a Database `details-map`, return a JDBC connection spec.
(db->pooled-connection-spec database-or-id)
Return a JDBC connection spec that includes a cp30 ComboPooledDataSource
.
Theses connection pools are cached so we don't create multiple ones to the same DB.
Return a JDBC connection spec that includes a cp30 `ComboPooledDataSource`. Theses connection pools are cached so we don't create multiple ones to the same DB.
(details->connection-spec-for-testing-connection driver details)
Return an appropriate JDBC connection spec to test whether a set of connection details is valid (i.e., implementing
can-connect?
).
Return an appropriate JDBC connection spec to test whether a set of connection details is valid (i.e., implementing `can-connect?`).
(notify-database-updated _ database)
Default implementation of driver/notify-database-updated
for JDBC SQL drivers. We are being informed that a
DATABASE has been updated, so lets shut down the connection pool (if it exists) under the assumption that the
connection details have changed.
Default implementation of `driver/notify-database-updated` for JDBC SQL drivers. We are being informed that a DATABASE has been updated, so lets shut down the connection pool (if it exists) under the assumption that the connection details have changed.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close