(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
(begin-transaction session)
Start a new transaction on the given Neo4J session
Start a new transaction on the given Neo4J session
(commit! trans)
Commits the given transaction
Commits the given transaction
(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
(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
(create-graph! runner 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 :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 lookup representations :nodes - collection of neo4j node representations :rels - collection of neo4j relationship representations :returns - collection of aliases to return from query
(create-index! runner label prop-keys)
Creates an index on the given combination and properties
Creates an index on the given combination and properties
(create-node! runner node)
Create a node based on the given Node representation
Create a node based on the given Node representation
(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.
(create-rel! runner rel)
Create a relationship based on the given Relationship representation
Create a relationship based on the given Relationship representation
(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
(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
(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
(disconnect conn)
Disconnect the given connection
Disconnect the given connection
(drop-index! runner label prop-keys)
Delete an index on the given combination and properties
Delete an index on the given combination and properties
Execute the given query on the specified connection with optional parameters
Execute the given query on the specified connection with optional parameters
(find-node runner node)
Takes a Node representation and returns a single matching node
Takes a Node representation and returns a single matching node
(find-nodes runner node)
Takes a Node representation and returns all matching nodes
Takes a Node representation and returns all matching nodes
(find-rel runner rel)
Takes a Relationship representation and returns a single matching relationship
Takes a Relationship representation and returns a single matching relationship
(find-rels runner rel)
Takes a Relationship representation and returns all matching relationships
Takes a Relationship representation and returns all matching relationships
(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
(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
(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
(rollback trans)
Rolls the given transaction back
Rolls the given transaction back
(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
(with-read-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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close