Liking cljdoc? Tell your friends :D

neo4clj.client


add-labels!clj

(add-labels! runner 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 :database - defaults to nil

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
:database - defaults to nil
sourceraw docstring

create-from-builder!clj

(create-from-builder! runner entity builder)

Helper function to execute a specific query builder string and return the results

Helper function to execute a specific query builder string and return the results
sourceraw docstring

create-graph!clj

(create-graph! runner graph)

Optimized function to create a whole graph within a transaction

Format of the graph is: :lookups - collection of neo4j Node Lookup representations :nodes - collection of neo4j Node representations :rels - 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 Node Lookup representations
:nodes - collection of neo4j Node representations
:rels  - collection of neo4j Relationship representations
:returns - collection of aliases to return from query
sourceraw docstring

create-index!clj

(create-index! runner alias label prop-keys)

Creates an index on the given combination and properties

Creates an index on the given combination and properties
sourceraw docstring

create-node!clj

(create-node! runner node)

Create a node based on the given Node representation

Create a node based on the given Node representation
sourceraw docstring

create-queryclj

(create-query query)

Takes a cypher query as input and returns a anonymous function that takes a query runner and return the query result as a map.

The function can also take a optional map of parameters used to replace params in the query string.

This functions can be used together with parameters to ensure better cached queries in Neo4j.

Takes a cypher query as input and returns a anonymous function that
takes a query runner and return the query result as a map.

The function can also take a optional map of parameters used to replace params in the query string.

This functions can be used together with parameters to ensure better cached queries in Neo4j.
sourceraw docstring

create-rel!clj

(create-rel! runner rel)

Create a relationship based on the given Relationship representation

Create a relationship based on the given Relationship representation
sourceraw docstring

create-sessionclj

(create-session {:keys [driver database] :as conn})

Create a new session on the given Neo4J connection

Create a new session on the given Neo4J connection
sourceraw docstring

delete-node!clj

(delete-node! runner neo4j-node)

Takes a neo4j node representation and deletes nodes found based on it

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

delete-rel!clj

(delete-rel! runner neo4j-rel)

Takes a neo4j relationship representation and deletes relationships found based on it

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

disconnectclj

(disconnect conn)

Disconnect the given connection

Disconnect the given connection
sourceraw docstring

drop-index!clj

(drop-index! runner alias)

Delete an index on the given combination and properties

Delete an index on the given combination and properties
sourceraw docstring

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

execute-readclj

(execute-read conn query)
(execute-read conn query params)
source

execute-write!clj

(execute-write! conn query)
(execute-write! conn query params)
source

find-nodeclj

(find-node runner {:keys [ref-id] :as node})

Takes a Node Lookup representation and returns a single matching node

Takes a Node Lookup representation and returns a single matching node
sourceraw docstring

find-nodesclj

(find-nodes runner node)

Takes a Node Lookup representation and returns all matching nodes

Takes a Node Lookup representation and returns all matching nodes
sourceraw docstring

find-relclj

(find-rel runner rel)

Takes a Relationship representation and returns a single matching relationship

Takes a Relationship representation and returns a single matching relationship
sourceraw docstring

find-relsclj

(find-rels runner rel)

Takes a Relationship representation and returns all matching relationships

Takes a Relationship representation and returns all matching relationships
sourceraw docstring

get-graphclj

(get-graph runner graph)

Lookups the nodes based on given relationships and returns specified entities

Format of the graph is: :nodes - collection of neo4j Node representations :rels - collection of neo4j Relationship representations :returns - collection of aliases to return from query

Lookups the nodes based on given relationships and returns specified entities

Format of the graph is:
:nodes - collection of neo4j Node representations
:rels  - collection of neo4j Relationship representations
:returns - collection of aliases to return from query
sourceraw docstring

remove-labels!clj

(remove-labels! runner 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! runner 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! runner 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-read-only-conncljmacro

(with-read-only-conn conn runner-alias & body)

Create a managed read transaction with the name given as runner-alias and execute the body within the transaction.

The runner-alias given for the transaction can be used within the body.

Create a managed read transaction with the name given as runner-alias and execute the
body within the transaction.

The runner-alias given for the transaction can be used within the body.
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

with-write-conncljmacro

(with-write-conn conn runner-alias & body)

Create a managed write transaction with the name given as runner-alias and execute the body within the transaction.

The runner-alias given for the transaction can be used within the body.

Create a managed write transaction with the name given as runner-alias and execute the
body within the transaction.

The runner-alias given for the transaction can be used within the body.
sourceraw docstring

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

× close