A Clojure utility library for Heroku web applications
Clojure
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/hanami
test/hanami
.gitignore
.travis.yml
README.md
project.clj

README.md

Hanami

Build Status

A Clojure utility library for Heroku web applications.

Installation

Add the following dependency to your project.clj:

[hanami "0.1.0"]

Usage

Hanami currently just has one multimethod, jdbc-uri, that can be used to change a Heroku DATABASE_URL value into a JDBC connection string.

(require '[hanami.core :as hanami])

(hanami/jdbc-uri "postgres://foo:foo@heroku.com:5432/hellodb")
=> "jdbc:postgresql://heroku.com:5432/hellodb?user=foo&password=foo"

License

Copyright © 2014 James Reeves

Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.