Liking cljdoc? Tell your friends :D

neo4clj.client


add-labels!clj

(add-labels! conn neo4j-node labels)

Takes a collection of labels and adds them to the found neo4j nodes

Takes a collection of labels and adds them to the found neo4j nodes
sourceraw docstring

begin-transactionclj

(begin-transaction session)

Start a new transaction on the given Neo4J session

Start a new transaction on the given Neo4J session
sourceraw docstring

commit!clj

(commit! trans)

Commits the given transaction

Commits the given transaction
sourceraw docstring

connectclj

(connect url)
(connect url opts)
(connect url usr pwd)
(connect url usr pwd opts)

Connect through bolt to the given neo4j server

Supports the current options: :log :level [:all :error :warn :info :off] - defaults to :warn :encryption [:required :none] - defaults to :required

Connect through bolt to the given neo4j server

Supports the current options:
:log :level [:all :error :warn :info :off] - defaults to :warn
:encryption [:required :none] - defaults to :required
sourceraw docstring

create-graph!clj

(create-graph! conn graph)

Optimized function to create a whole graph within a transaction

Format of the graph is: :lookups - collection of neo4j lookup representations :nodes - collection of neo4j node representations :relationships - collection of neo4j relationship representations :returns - collection of aliases to return from query

Optimized function to create a whole graph within a transaction

Format of the graph is:
:lookups - collection of neo4j lookup representations
:nodes - collection of neo4j node representations
:relationships  - collection of neo4j relationship representations
:returns - collection of aliases to return from query
sourceraw docstring

create-index!clj

(create-index! conn label prop-keys)
source

create-node!clj

(create-node! conn node)
source

create-relationship!clj

(create-relationship! conn rel)
source

create-sessionclj

(create-session conn)

Create a new session on the given Neo4J connection

Create a new session on the given Neo4J connection
sourceraw docstring

delete!clj

(delete! conn neo4j-entity)

Takes a neo4j representation and deletes objects found based on it

Takes a neo4j representation and deletes objects found based on it
sourceraw docstring

disconnectclj

(disconnect conn)

Disconnect the given connection

Disconnect the given connection
sourceraw docstring

drop-index!clj

(drop-index! conn label prop-keys)
source

execute!cljmultimethod

Execute the given query on the specified connection with optional parameters

Execute the given query on the specified connection with optional parameters
sourceraw docstring

find-nodes!clj

(find-nodes! conn node)
source

get-graphclj

(get-graph conn graph)

Lookups the nodes based on given relationships and returns specified entities

Format of the graph is: :nodes - collection of neo4j node representations :relationships - collection of neo4j relationship representations :return-aliases - collection of aliases to return from query :unique-by - reference-id to use for creating a list of distinct nodes

Lookups the nodes based on given relationships and returns specified entities

Format of the graph is:
:nodes - collection of neo4j node representations
:relationships  - collection of neo4j relationship representations
:return-aliases - collection of aliases to return from query
:unique-by - reference-id to use for creating a list of distinct nodes
sourceraw docstring

remove-labels!clj

(remove-labels! conn neo4j-node labels)

Takes a collection of labels and removes them from found neo4j nodes

Takes a collection of labels and removes them from found neo4j nodes
sourceraw docstring

replace-props!clj

(replace-props! conn neo4j-entity props)

Takes a property map and replaces the properties on all found neo4j objects with it

Takes a property map and replaces the properties on all found neo4j objects with it
sourceraw docstring

rollbackclj

(rollback trans)

Rolls the given transaction back

Rolls the given transaction back
sourceraw docstring

update-props!clj

(update-props! conn neo4j-entity props)

Takes a property map and updates the found neo4j objects with it based on the following rules:

Keys existing only in the given property map is added to the object Keys existing only in the property map on the found object is kept as is Keys existing in both property maps are updated with values from the given property map

Takes a property map and updates the found neo4j objects with it based on the
following rules:

Keys existing only in the given property map is added to the object
Keys existing only in the property map on the found object is kept as is
Keys existing in both property maps are updated with values from the given property map
sourceraw docstring

with-sessioncljmacro

(with-session conn session & body)

Creates a session with the given name on the given connection and executes the body within the session.

The session can be used with the given name in the rest of the body.

Creates a session with the given name on the given connection and executes the body
within the session.

The session can be used with the given name in the rest of the body.
sourceraw docstring

with-transactioncljmacro

(with-transaction conn trans & body)

Create a transaction with given name on the given connection execute the body within the transaction.

The transaction can be used with the given name in the rest of the body.

Create a transaction with given name on the given connection execute the body
within the transaction.

The transaction can be used with the given name in the rest of the body.
sourceraw docstring

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

× close