zensols.cisql.spec

This package manages DB specs. It also class loads and optionally downloads the JDBC drivers.

db-spec

(db-spec conn)

Create a database spec used by the Clojure JDBC API. If the JDBC driver for the spec doesn’t exist it is downloaded and then class loaded.

The parameter conn is a map with string values and the following keys:

  • :name name of the DB/JDBC connection implementation (ex: mysql)
  • :user login user
  • :password login passowrd
  • :host name of server hosting the DB
  • :database the database name

driver-add

(driver-add name opts)

driver-add-command

CLI command to install a JDBC driver.

driver-describe-command

CLI command to list drivers currently installed.

driver-user-registry-purge-command

CLI command to install a JDBC driver.

name-option

(name-option validate?)

Create a usage option for the database name.

print-drivers

(print-drivers)

registered-names

(registered-names)

Return a sequence of provided drivers. These are the default driver information (not actual JDBC drivers).

remove-meta

(remove-meta driver-name)

reset

(reset)