Liking cljdoc? Tell your friends :D

clojurewerkz.archimedes.graph


*edge-label-key*clj

source

*element-id-key*clj

source

clean-tinkergraphclj

(clean-tinkergraph)
source

commitclj

(commit g)

Commit all changes to the graph.

Commit all changes to the graph.
sourceraw docstring

get-featureclj

(get-feature g s)

Gets the value of the feature for a graph.

Gets the value of the feature for a graph.
sourceraw docstring

get-featuresclj

(get-features g)
Get a map of features for a graph.
(http://tinkerpop.com/docs/javadocs/blueprints/2.1.0/com/tinkerpop/blueprints/Features.html)
sourceraw docstring

new-tinkergraphclj

(new-tinkergraph)
source

new-transactionclj

(new-transaction g)

Creates a new transaction based on the given graph object.

Creates a new transaction based on the given graph object.
sourceraw docstring

rollbackclj

(rollback g)

Stops the current transaction and rolls back any changes made.

Stops the current transaction and rolls back any changes made.
sourceraw docstring

set-edge-label-key!clj

(set-edge-label-key! new-id)
source

set-element-id-key!clj

(set-element-id-key! new-id)
source

shutdownclj

(shutdown g)

Shutdown the graph.

Shutdown the graph.
sourceraw docstring

with-transactioncljmacro

(with-transaction binding & body)

Evaluates body in the context of a transaction on the specified graph, which must support transactions. The binding provides the graph for the transaction and the name to which the transactional graph is bound for evaluation of the body.

(with-transaction [tx graph] (vertex/create! tx) ...)

If the graph supports threaded transactions, the binding may also specify that the body be executed in a threaded transaction.

(with-transaction [tx graph :threaded? true] (vertex/create! tx) ...)

Note that commit and rollback should not be called explicitly inside with-transaction. If you want to force a rollback, you must throw an exception or specify rollback in the with-transaction call:

(with-transaction [tx graph :rollback? true] (vertex/create! tx) ...)

Evaluates body in the context of a transaction on the specified graph, which must
support transactions.  The binding provides the graph for the transaction and the
name to which the transactional graph is bound for evaluation of the body.

(with-transaction [tx graph]
  (vertex/create! tx)
  ...)

If the graph supports threaded transactions, the binding may also specify that the
body be executed in a threaded transaction.

(with-transaction [tx graph :threaded? true]
   (vertex/create! tx)
   ...)

Note that `commit` and `rollback` should not be called explicitly inside
`with-transaction`. If you want to force a rollback, you must throw an
exception or specify rollback in the `with-transaction` call:

(with-transaction [tx graph :rollback? true]
   (vertex/create! tx)
   ...)
sourceraw docstring

with-transaction*clj

(with-transaction* graph f & {:keys [threaded? rollback?]})
source

with-transaction-retrycljmacro

(with-transaction-retry binding & body)
source

with-transaction-retry*clj

(with-transaction-retry* graph
                         f
                         &
                         {:keys [max-attempts wait-time threaded? rollback?]})
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close