bento_meta.util.cypher.clauses

bento_meta.util.cypher.clauses

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

Module Contents

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.

Statement

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

class bento_meta.util.cypher.clauses.Clause(*args, **kwargs)[source]

Bases: object

Represents a generic Cypher clause.

template
joiner = ', '
static context(arg)[source]
__str__()[source]

Return str(self).

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]
__str__()[source]

Return str(self).

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]

Return str(self).

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]

Return str(self).

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.Statement(*args, terminate=False, use_params=False)[source]

Bases: object

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

property params
__str__()[source]

Return str(self).