Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
# postgre-types
# postgres-json

A Clojure library designed to let jdbc talk the PostgresSQL json type.

## Install

[![Clojars Project](http://clojars.org/postgre-types/latest-version.svg)](http://clojars.org/postgre-types)
[![Clojars Project](http://clojars.org/postgres-json/latest-version.svg)](http://clojars.org/postgres-json)

## Usage

```clojure
(ns your-namespace.foo
(:require [postgre-types.json :refer [add-json-type]]))
(:require [postgres-json.json :refer [add-json-type]]))

(add-json-type f-write-json f-read-json)

Expand All @@ -22,7 +22,7 @@ You can also add `jsonb` with the same interface.

```clojure
(ns your-namespace.foo
(:require [postgre-types.json :refer [add-jsonb-type]]))
(:require [postgres-json.json :refer [add-jsonb-type]]))

(add-jsonb-type f-write-json f-read-json)

Expand Down
6 changes: 3 additions & 3 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(defproject postgre-types "0.0.4"
(defproject postgres-json "0.0.4"
:description "Integration with PostgresSQL multiple types"
:url "https://github.com/siscia/postgres-type"
:url "https://github.com/ecbrown/postgres-json"
:license {:name "Eclipse Public License"
:url "http://www.eclipse.org/legal/epl-v10.html"}
:dependencies [[org.clojure/clojure "1.6.0"]
[org.clojure/java.jdbc "0.3.6"]
[org.postgresql/postgresql "9.4-1201-jdbc41"]]
:repositories [["release" "https://clojars.org/siscia"]]
:repositories [#_["release" "https://clojars.org/siscia"]]
:profiles {:dev {:dependencies [[cheshire "5.3.1"]]}})
2 changes: 1 addition & 1 deletion src/postgre_types/json.clj → src/postgres_json/json.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


(ns ^{:author "Simone Mosciatti"}
postgre-types.json
postgres-json.json
(:require [clojure.java.jdbc :as jdbc])
(:import org.postgresql.util.PGobject))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns postgre-types.core-test
(ns postgres-json.core-test
(:require [clojure.test :refer :all]
[clojure.java.jdbc :as j]
[postgre-types.json :refer [add-json-type add-jsonb-type]]
[postgres-json.json :refer [add-json-type add-jsonb-type]]
[cheshire.core :refer [generate-string parse-string]]))

(def db-spec {:classname "org.postgresql.Driver"
Expand Down