Back

uri->db-spec (clj)

(source)

function

(uri->db-spec uri)
clojure.java.jdbc (and some users out there) considered the URI format to be an acceptable JDBC URL, i.e., with credentials embdedded in the string, rather than as query parameters. This function accepts a URI string, optionally prefixed with `jdbc:` and returns a db-spec hash map.

Examples