forked from drone29a/clojure-neo4j
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
537 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
pom.xml | ||
*.jar | ||
lib | ||
classes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
The clojure-neo4j project provides a more lispy interface to Neo4j, a graph-structured on-disk transactional database. | ||
|
||
This library is under active development and there's plenty more work to do. | ||
|
||
Wrapper for Neo4j. Because I was not happy with the current state | ||
(01/2011) of existing Neo4j wrappers for clojure, I've decided to | ||
create my own. | ||
|
||
Purpose of this ns is to provide intiutive access to commonly used | ||
Neo4j operations. It uses official Neo4j Java bindings. It does not | ||
use Blueprints interface. | ||
|
||
Disclaimer: I have forked hgavin/clojure-neo4j and modified it | ||
heavily. | ||
|
||
Disclaimer: Some comments and docs are taken from official Neo4j javadocs. | ||
|
||
## Usage: | ||
|
||
* use with-db! to establish a connection to the database | ||
|
||
* all db operations must be inside with-db! body | ||
|
||
## Code notes: | ||
|
||
* *neo-db* holds the current db instance, so that users do not have | ||
to supply db instance at each call to db operations. This | ||
approach has of course its drawbacks (e.g. only one connection at | ||
time), but I've found it suitable for my purposes. | ||
|
||
Examples: | ||
|
||
(ns foo.example | ||
(:require [neo4j.core :as neo])) | ||
|
||
(neo/with-neo "/path/to/db" | ||
|
||
|
||
|
||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
(defproject org.clojars.hgavin/clojure-neo4j "0.3.0-SNAPSHOT" | ||
(defproject com.wagjo/neo "0.3.0-SNAPSHOT" | ||
:description "The clojure-neo4j project provides a more lispy interface to Neo4j, a graph-structured on-disk transactional database." | ||
:dependencies [[org.clojure/clojure "1.2.0"] | ||
[org.clojure/clojure-contrib "1.2.0"] | ||
[org.neo4j/neo4j-kernel "1.2-SNAPSHOT"] | ||
[org.neo4j/neo4j-index "1.2-SNAPSHOT"]] | ||
:dev-dependencies [[swank-clojure "1.2.1"]]) | ||
|
||
:dependencies [[org.clojure/clojure "1.2.0"] | ||
[org.clojure/clojure-contrib "1.2.0"] | ||
[org.neo4j/neo4j "1.2"]] | ||
:dev-dependencies [[swank-clojure "1.3.0-SNAPSHOT"]] | ||
:jvm-opts ["-Dswank.encoding=utf-8"]) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.