Skip to content

Commit 30f30e9

Browse files
authored
Merge branch 'master' into master
2 parents 4c6ae4d + acac284 commit 30f30e9

24 files changed

+34
-26
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ target/*
1111
.nrepl-*
1212
.idea
1313
*.iml
14+
.DS_Store

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ definition to your `pom.xml`:
7575

7676
With Leiningen:
7777

78-
[clojurewerkz/neocons "3.2.0"]
78+
[tuddman/neocons "3.2.1-SNAPSHOT"]
7979

8080
With Maven:
8181

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

9898
## Supported Clojure Versions
9999

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

103103

104104
## Supported Neo4J Server Versions

project.clj

+2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
:codox {:src-dir-uri "https://github.com/michaelklishin/neocons/blob/master/"
4444
:src-linenum-anchor-prefix "L"}
4545

46+
4647
:aliases {"all" ["with-profile" "dev:dev,1.8:dev,master"]}
48+
4749
:repositories {"sonatype" {:url "http://oss.sonatype.org/content/repositories/releases"
4850
:snapshots false
4951
:releases {:checksum :fail :update :always}}

src/clojure/clojurewerkz/neocons/bolt.clj

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the
@@ -14,7 +14,7 @@
1414
(org.neo4j.driver.v1 AuthTokens Config Driver
1515
GraphDatabase Record Session
1616
StatementResult StatementRunner
17-
Transaction Values)))
17+
Transaction TransactionWork Values)))
1818

1919
(defn- env-var
2020
[^String s]
@@ -49,6 +49,11 @@
4949
^Transaction [^Session session]
5050
(.beginTransaction session))
5151

52+
(defn run-tx
53+
[^Transaction transaction ^String qry ^Map params]
54+
(map (fn [^Record r] (into {} (.asMap r)))
55+
(iterator-seq (.run transaction qry params))))
56+
5257
(defn tx-successful
5358
[^Transaction transaction]
5459
(.success transaction))

src/clojure/clojurewerkz/neocons/rest.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/bolt/test/bolt_test.clj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the
@@ -43,7 +43,7 @@
4343
{"name" n})]
4444
(is (pos? (count res))))))))
4545

46-
(deftest test-transaction-successful
46+
(deftest test-transaction-failure
4747
(with-open [driver (neobolt/connect "bolt://localhost")]
4848
(with-open [session (neobolt/create-session driver)]
4949
(let [n (str (gensym "bobfail"))]

test/clojurewerkz/neocons/rest/test/basic_http_authentication_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/batch_operations_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/connection_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/constraints_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/cypher_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/graphene_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/helpers_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/index_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/indexing_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/integration_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/labels_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/mutating_cypher_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/nodes_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/records_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/relationships_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/spatial_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/transaction_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

test/clojurewerkz/neocons/rest/test/traversal_test.clj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
;; Copyright (c) 2011-2015! Michael S. Klishin, Alex Petrov, and The ClojureWerkz
1+
;; Copyright (c) 2011-2018 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
22
;; Team
33
;;
44
;; The use and distribution terms for this software are covered by the

0 commit comments

Comments
 (0)