java.jdbc

Provide more intuitive db-spec format

Details

  • Type: Enhancement Enhancement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

All this :subname / :subprotocol stuff is fine but it would be nice to just be able to say:

{:dbtype "mysql" :dbname "foo"}

and have the :subname be constructed from defaults, optionally allowing :host / :port to override 127.0.0.1 and (for mysql, 3306; for mssql/jtds 1433).

Activity

Hide
Glen Mailer added a comment -

It would also be helpful to support use of a URI for config, as used in systems like heroku.

This link seems to be the best example I can find:

http://turbogears.org/1.0/docs/DbUri.html

Show
Glen Mailer added a comment - It would also be helpful to support use of a URI for config, as used in systems like heroku. This link seems to be the best example I can find: http://turbogears.org/1.0/docs/DbUri.html
Hide
Sean Corfield added a comment -

Glen, URIs are already supported. You can see examples in the test suite: https://github.com/clojure/java.jdbc/blob/master/src/test/clojure/clojure/java/test_jdbc.clj#L90-L98

Show
Sean Corfield added a comment - Glen, URIs are already supported. You can see examples in the test suite: https://github.com/clojure/java.jdbc/blob/master/src/test/clojure/clojure/java/test_jdbc.clj#L90-L98

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: