bento_meta.util.cypher.clauses

bento_meta.util.cypher.clauses

Representations of Cypher statement clauses, statements, and statement parameters.

Classes

Clause

Represents a generic Cypher clause.

Match

Create a MATCH clause with the arguments.

Where

Create a WHERE clause with the arguments

With

Create a WITH clause with the arguments.

Create

Create a CREATE clause with the arguments.

Merge

Create a MERGE clause with the arguments.

Remove

Create a REMOVE clause with the arguments.

Set

Create a SET clause with the arguments. (Only property arguments matter.)

OnCreateSet

Create an ON CREATE SET clause for a MERGE with the arguments.

OnMatchSet

Create an ON CREATE SET clause for a MERGE with the arguments.

Return

Create a RETURN clause with the arguments.

OptionalMatch

Create an OPTIONAL MATCH clause with the arguments.

Collect

Create a COLLECT clause with the arguments.

Unwind

Create an UNWIND clause with the arguments.

As

Create an AS clause with the arguments.

Delete

Create a DELETE clause with the arguments.

DetachDelete

Create a DETACH DELETE clause with the arguments.

Case

Create a CASE clause with the arguments.

When

Create a WHEN clause with the arguments.

Then

Create a THEN clause with the arguments.

Else

Create an ELSE clause with the arguments.

End

Create an END clause with the arguments.

ForEach

Create an FOREACH clause with the arguments.

Statement

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 = ', '
static context(arg)[source]
args = []
kwargs
__str__()[source]
class bento_meta.util.cypher.clauses.Match(*args)[source]

Bases: Clause

Create a MATCH clause with the arguments.

template
static context(arg)[source]
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 = ' {} '
static context(arg)[source]
op = 'AND'
__str__()[source]
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
static context(arg)[source]
class bento_meta.util.cypher.clauses.Merge(*args)[source]

Bases: Clause

Create a MERGE clause with the arguments.

template
static context(arg)[source]
class bento_meta.util.cypher.clauses.Remove(*args, **kwargs)[source]

Bases: Clause

Create a REMOVE clause with the arguments.

template
__str__()[source]
class bento_meta.util.cypher.clauses.Set(*args, **kwargs)[source]

Bases: Clause

Create a SET clause with the arguments. (Only property arguments matter.)

template
static context(arg)[source]
__str__()[source]
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
static context(arg)[source]
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 = ' {} '
static context(arg)[source]
op = 'AND'
__str__()[source]
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
class bento_meta.util.cypher.clauses.ForEach(*args)[source]

Bases: Clause

Create an FOREACH clause with the arguments.

template
class bento_meta.util.cypher.clauses.Statement(*args, terminate=False, use_params=False)[source]

Bases: object

Create a Neo4j statement comprised of clauses (and strings) in order.

clauses = ()
terminate = False
use_params = False
_params = None
__str__()[source]
property params