Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

private var fix

  • Loading branch information...
commit c9c87d7e159101b9c7c78581d162567a9b878747 1 parent 146ea48
@wagjo wagjo authored
Showing with 4 additions and 8 deletions.
  1. +3 −1 README.md
  2. +1 −7 src/borneo/core.clj
View
4 README.md
@@ -20,10 +20,12 @@ Quick overview of available functions (most important ones are
emphasized):
* _Database management_
+ * _[*neo-db*](http://wagjo.github.com/borneo/borneo.core-api.html#borneo.core/*neo-db*)_ - Holds current database instance
+ * _[start!](http://wagjo.github.com/borneo/borneo.core-api.html#borneo.core/start!)_ - Establish a connection to the database
+ * _[stop!](http://wagjo.github.com/borneo/borneo.core-api.html#borneo.core/stop!)_ - Closes a connection stored in \*neo-db\*
* ___[with-db!](http://wagjo.github.com/borneo/borneo.core-api.html#borneo.core/with-db!)_ - establish a connection to the database__
* _[with-local-db!](http://wagjo.github.com/borneo/borneo.core-api.html#borneo.core/with-local-db!)_ - establish a thread local connection to the database
* ___[with-tx](http://wagjo.github.com/borneo/borneo.core-api.html#borneo.core/with-tx)_ - establish a transaction__
- * _[get-db](http://wagjo.github.com/borneo/borneo.core-api.html#borneo.core/get-db)_ - get current database instance
* _[get-path](http://wagjo.github.com/borneo/borneo.core-api.html#borneo.core/get-path)_ - get path to where database is stored
* _[read-only?](http://wagjo.github.com/borneo/borneo.core-api.html#borneo.core/read-only?)_ - returns true if database is read only
* _[index](http://wagjo.github.com/borneo/borneo.core-api.html#borneo.core/index)_ - returns Index Manager
View
8 src/borneo/core.clj
@@ -46,8 +46,7 @@
;;;; Implementation details
-(defonce ^{:private true
- :doc "Holds the current database instance"
+(defonce ^{:doc "Holds the current database instance"
:tag EmbeddedGraphDatabase
:dynamic true}
*neo-db* nil)
@@ -283,11 +282,6 @@
val#)
(finally (.finish tx#)))))
-(defn get-db
- "Returns current database instance"
- []
- *neo-db*)
-
(defn get-path
"Returns path to where the database is stored"
[]
Please sign in to comment.
Something went wrong with that request. Please try again.