Liking cljdoc? Tell your friends :D

jdbc-pg-sanity

Sane defaults for working with clojure.java.jdbc and postgresql. No more boilerplate.

Handles the following:

  • dates to java.util.Date
  • json and jsonb to clojure maps
  • postgres arrays to clojure vectors

Usage

Clojars Project

Just require the jdbc-pg-sanity.core namespace:

(ns whatever.db
    (require [clojure.java.jdbc :as j]
             jdbc-pg-sanity.core))

;; do your postgres thing here

Contributing

Contributions and improvements welcome, just open an issue! :)

If this library should do something, and it doesn't currently do it, please fork and open a pull request. All reasonable contributions will be accepted.

Acknowledgements

Most of this library is extracted from the boilerplate generated by Luminus, which is in turn inspired by boilerplate clojurians have been copy-pasting around since time immemorial.

License

Copyright © 2016 Shane Kilkelly

Distributed under the MIT license.

Can you improve this documentation?Edit on GitHub

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

× close