bento_meta.util.cypher.clauses
bento_meta.util.cypher.clauses
Representations of Cypher statement clauses, statements, and statement parameters.
Classes
Represents a generic Cypher clause. |
|
Create a MATCH clause with the arguments. |
|
Create a WHERE clause with the arguments |
|
Create a WITH clause with the arguments. |
|
Create a CREATE clause with the arguments. |
|
Create a MERGE clause with the arguments. |
|
Create a REMOVE clause with the arguments. |
|
Create a SET clause with the arguments. (Only property arguments matter.) |
|
Create an ON CREATE SET clause for a MERGE with the arguments. |
|
Create an ON CREATE SET clause for a MERGE with the arguments. |
|
Create a RETURN clause with the arguments. |
|
Create an OPTIONAL MATCH clause with the arguments. |
|
Create a COLLECT clause with the arguments. |
|
Create an UNWIND clause with the arguments. |
|
Create an AS clause with the arguments. |
|
Create a DELETE clause with the arguments. |
|
Create a DETACH DELETE clause with the arguments. |
|
Create a CASE clause with the arguments. |
|
Create a WHEN clause with the arguments. |
|
Create a THEN clause with the arguments. |
|
Create an ELSE clause with the arguments. |
|
Create an END clause with the arguments. |
|
Create an FOREACH clause with the arguments. |
|
Create a Neo4j statement comprised of clauses (and strings) in order. |
Module Contents
- class bento_meta.util.cypher.clauses.Clause(*args, **kwargs)[source]
Bases:
object
Represents a generic Cypher clause.
- template
- joiner = ', '
- args = []
- kwargs
- class bento_meta.util.cypher.clauses.Match(*args)[source]
Bases:
Clause
Create a MATCH clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.Where(*args, op='AND')[source]
Bases:
Clause
Create a WHERE clause with the arguments (joining conditions with ‘op’).
- template
- joiner = ' {} '
- op = 'AND'
- class bento_meta.util.cypher.clauses.With(*args)[source]
Bases:
Clause
Create a WITH clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.Create(*args)[source]
Bases:
Clause
Create a CREATE clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.Merge(*args)[source]
Bases:
Clause
Create a MERGE clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.Remove(*args, **kwargs)[source]
Bases:
Clause
Create a REMOVE clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.Set(*args, **kwargs)[source]
Bases:
Clause
Create a SET clause with the arguments. (Only property arguments matter.)
- template
- class bento_meta.util.cypher.clauses.OnCreateSet(*args)[source]
Bases:
Set
Create an ON CREATE SET clause for a MERGE with the arguments.
- template
- class bento_meta.util.cypher.clauses.OnMatchSet(*args)[source]
Bases:
Set
Create an ON CREATE SET clause for a MERGE with the arguments.
- template
- class bento_meta.util.cypher.clauses.Return(*args)[source]
Bases:
Clause
Create a RETURN clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.OptionalMatch(*args)[source]
Bases:
Clause
Create an OPTIONAL MATCH clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.Collect(*args)[source]
Bases:
Clause
Create a COLLECT clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.Unwind(*args)[source]
Bases:
Clause
Create an UNWIND clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.As(*args)[source]
Bases:
Clause
Create an AS clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.Delete(*args)[source]
Bases:
Clause
Create a DELETE clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.DetachDelete(*args)[source]
Bases:
Clause
Create a DETACH DELETE clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.Case(*args)[source]
Bases:
Clause
Create a CASE clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.When(*args, op='AND')[source]
Bases:
Clause
Create a WHEN clause with the arguments.
- template
- joiner = ' {} '
- op = 'AND'
- class bento_meta.util.cypher.clauses.Then(*args)[source]
Bases:
Clause
Create a THEN clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.Else(*args)[source]
Bases:
Clause
Create an ELSE clause with the arguments.
- template
- class bento_meta.util.cypher.clauses.End(*args)[source]
Bases:
Clause
Create an END clause with the arguments.
- template