Liking cljdoc? Tell your friends :D

metabase.driver.sql-jdbc.connection

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.
raw docstring

can-connect?clj

(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.
sourceraw docstring

connection-details->speccljmultimethod

(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.
sourceraw docstring

db->pooled-connection-specclj

(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.
sourceraw docstring

details->connection-spec-for-testing-connectionclj

(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?`).
sourceraw docstring

notify-database-updatedclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close