Liking cljdoc? Tell your friends :D

neo4j-clj.core

This namespace contains the logic to connect to Neo4j instances, create and run queries as well as creating an in-memory database for testing.

This namespace contains the logic to connect to Neo4j instances,
create and run queries as well as creating an in-memory database for
testing.
raw docstring

configclj

(config options)
source

connectclj

(connect uri)
(connect uri options)
(connect uri user password)
(connect uri user password options)

Returns a connection map from an url. Uses BOLT as the only communication protocol.

You can connect using a url or a url, user, password combination. Either way, you can optioninally pass a map of options:

:logging - a Neo4j logging configuration, e.g. (ConsoleLogging. Level/FINEST)

Returns a connection map from an url. Uses BOLT as the only communication
protocol.

You can connect using a url or a url, user, password combination.
Either way, you can optioninally pass a map of options:

`:logging`   - a Neo4j logging configuration, e.g. (ConsoleLogging. Level/FINEST)
sourceraw docstring

create-in-memory-connectioncljdeprecated

(create-in-memory-connection)

To make the local db visible under the same interface/map as remote databases, we connect to the local url. To be able to shutdown the local db, we merge a destroy function into the map that can be called after testing.

All data will be wiped after shutting down the db!

To make the local db visible under the same interface/map as remote
databases, we connect to the local url. To be able to shutdown the local db,
we merge a destroy function into the map that can be called after testing.

_All_ data will be wiped after shutting down the db!
sourceraw docstring

create-queryclj

(create-query cypher)

Convenience function. Takes a cypher query as input, returns a function that takes a session (and parameter as a map, optionally) and return the query result as a map.

Convenience function. Takes a cypher query as input, returns a function that
takes a session (and parameter as a map, optionally) and return the query
result as a map.
sourceraw docstring

defquerycljmacro

(defquery name query)

Shortcut macro to define a named query.

Shortcut macro to define a named query.
sourceraw docstring

disconnectclj

(disconnect db)
source

executeclj

(execute sess query)
(execute sess query params)
source

get-sessionclj

(get-session connection)
source

get-transactionclj

(get-transaction session)
source

retry-timesclj

(retry-times times body)
source

with-retrycljmacro

(with-retry [connection tx & {:keys [max-times] :or {max-times 1000}}] & body)
source

with-transactioncljmacro

(with-transaction connection tx & body)
source

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

× close