Skip to content

Change name of project to postgres-json #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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