(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
(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
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
(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
(create-session conn)
Create a new session on the given Neo4J connection
Create a new session on the given Neo4J connection
(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
(disconnect conn)
Disconnect the given connection
Disconnect the given connection
Execute the given query on the specified connection with optional parameters
Execute the given query on the specified connection with optional parameters
(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
(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
(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
(rollback trans)
Rolls the given transaction back
Rolls the given transaction back
(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
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close