Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
tuddman committed Jan 18, 2018
2 parents 4c6ae4d + acac284 commit 30f30e9
Show file tree
Hide file tree
Showing 24 changed files with 34 additions and 26 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -11,3 +11,4 @@ target/*
.nrepl-* .nrepl-*
.idea .idea
*.iml *.iml
.DS_Store
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -75,7 +75,7 @@ definition to your `pom.xml`:


With Leiningen: With Leiningen:


[clojurewerkz/neocons "3.2.0"] [tuddman/neocons "3.2.1-SNAPSHOT"]


With Maven: With Maven:


Expand All @@ -97,8 +97,8 @@ CI is hosted by [travis-ci.org](http://travis-ci.org)


## Supported Clojure Versions ## Supported Clojure Versions


Neocons requires Clojure 1.7+. Neocons requires Clojure 1.8+.
The most recent stable Clojure release is highly recommended. The most recent stable Clojure release (1.9) is highly recommended.




## Supported Neo4J Server Versions ## Supported Neo4J Server Versions
Expand Down
2 changes: 2 additions & 0 deletions project.clj
Expand Up @@ -43,7 +43,9 @@
:codox {:src-dir-uri "https://github.com/michaelklishin/neocons/blob/master/" :codox {:src-dir-uri "https://github.com/michaelklishin/neocons/blob/master/"
:src-linenum-anchor-prefix "L"} :src-linenum-anchor-prefix "L"}



:aliases {"all" ["with-profile" "dev:dev,1.8:dev,master"]} :aliases {"all" ["with-profile" "dev:dev,1.8:dev,master"]}

:repositories {"sonatype" {:url "http://oss.sonatype.org/content/repositories/releases" :repositories {"sonatype" {:url "http://oss.sonatype.org/content/repositories/releases"
:snapshots false :snapshots false
:releases {:checksum :fail :update :always}} :releases {:checksum :fail :update :always}}
Expand Down
9 changes: 7 additions & 2 deletions src/clojure/clojurewerkz/neocons/bolt.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand All @@ -14,7 +14,7 @@
(org.neo4j.driver.v1 AuthTokens Config Driver (org.neo4j.driver.v1 AuthTokens Config Driver
GraphDatabase Record Session GraphDatabase Record Session
StatementResult StatementRunner StatementResult StatementRunner
Transaction Values))) Transaction TransactionWork Values)))


(defn- env-var (defn- env-var
[^String s] [^String s]
Expand Down Expand Up @@ -49,6 +49,11 @@
^Transaction [^Session session] ^Transaction [^Session session]
(.beginTransaction session)) (.beginTransaction session))


(defn run-tx
[^Transaction transaction ^String qry ^Map params]
(map (fn [^Record r] (into {} (.asMap r)))
(iterator-seq (.run transaction qry params))))

(defn tx-successful (defn tx-successful
[^Transaction transaction] [^Transaction transaction]
(.success transaction)) (.success transaction))
Expand Down
2 changes: 1 addition & 1 deletion src/clojure/clojurewerkz/neocons/rest.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
4 changes: 2 additions & 2 deletions test/clojurewerkz/neocons/bolt/test/bolt_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down Expand Up @@ -43,7 +43,7 @@
{"name" n})] {"name" n})]
(is (pos? (count res)))))))) (is (pos? (count res))))))))


(deftest test-transaction-successful (deftest test-transaction-failure
(with-open [driver (neobolt/connect "bolt://localhost")] (with-open [driver (neobolt/connect "bolt://localhost")]
(with-open [session (neobolt/create-session driver)] (with-open [session (neobolt/create-session driver)]
(let [n (str (gensym "bobfail"))] (let [n (str (gensym "bobfail"))]
Expand Down
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/connection_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/constraints_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/cypher_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/graphene_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/helpers_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/index_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/indexing_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/integration_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/labels_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/nodes_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/records_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/relationships_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/spatial_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/transaction_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down
2 changes: 1 addition & 1 deletion test/clojurewerkz/neocons/rest/test/traversal_test.clj
@@ -1,4 +1,4 @@
;; Copyright (c) 2011-2015! Michael S. Klishin, Alex Petrov, and The ClojureWerkz ;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team ;; Team
;; ;;
;; The use and distribution terms for this software are covered by the ;; The use and distribution terms for this software are covered by the
Expand Down

0 comments on commit 30f30e9

Please sign in to comment.