- General Notes
- Client
- Connection Pool
- JSON extension
- Joda Time extension
- SSL Context extension
- HoneySQL support
Although PG is a set of modules, they all have the same version when deployed to Clojars. For example:
Lein:
[com.github.igrishaev/pg-client "0.1.11"]
[com.github.igrishaev/pg-pool "0.1.11"]
Deps:
{com.github.igrishaev/pg-client {:mvn/version "0.1.11"}}
Lein users may specify a global pg-version
variable on top of the
project.clj
and reference it as follows:
;; project.clj
(def pg-version "0.1.11")
(defproject some.cool/project "100.500"
:dependencies
[[com.github.igrishaev/pg-client ~pg-version]
[com.github.igrishaev/pg-pool ~pg-version]])
Usually, you don't need to specify more than one package because they depend on each other and will be download automatically.
The pg-client
module ships a client access to Postgres. Since the connection
pool depends on logging facility, it's shipped in a separate package.
Lein:
[com.github.igrishaev/pg-client "0.1.11"]
Deps:
{com.github.igrishaev/pg-client {:mvn/version "0.1.11"}}
The client depends on pool so there is no need to specify it explicitly.
Lein:
[com.github.igrishaev/pg-pool "0.1.11"]
Deps:
{com.github.igrishaev/pg-pool {:mvn/version "0.1.11"}}
A package that extends the client with reading and writing JSON objects.
Lein:
[com.github.igrishaev/pg-json "0.1.11"]
Deps:
{com.github.igrishaev/pg-json {:mvn/version "0.1.11"}}
Extends the client with Joda Time support.
Lein:
[com.github.igrishaev/pg-joda-time "0.1.11"]
Deps:
{com.github.igrishaev/pg-joda-time {:mvn/version "0.1.11"}}
A helper to build a custom instance of SSLContext
out from your local key and
certificates.
Lein:
[com.github.igrishaev/pg-ssl "0.1.11"]
Deps:
{com.github.igrishaev/pg-ssl {:mvn/version "0.1.11"}}
A helper package to use query
and execute
functions with Clojure maps that
get rendered into SQL expressions.
Lein:
[com.github.igrishaev/pg-honey "0.1.11"]
Deps:
{com.github.igrishaev/pg-honey {:mvn/version "0.1.11"}}