Skip to content

Commit

Permalink
changed virtually everything
Browse files Browse the repository at this point in the history
  • Loading branch information
wagjo committed Mar 4, 2011
1 parent bb5aa21 commit 3e1535e
Show file tree
Hide file tree
Showing 8 changed files with 537 additions and 323 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pom.xml
*.jar
lib
classes
33 changes: 0 additions & 33 deletions README

This file was deleted.

40 changes: 40 additions & 0 deletions README.md
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"



)
22 changes: 0 additions & 22 deletions build.xml

This file was deleted.

1 change: 0 additions & 1 deletion license.txt

This file was deleted.

13 changes: 7 additions & 6 deletions project.clj
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"])
261 changes: 0 additions & 261 deletions src/neo4j.clj

This file was deleted.

Loading

0 comments on commit 3e1535e

Please sign in to comment.