cymple.builder.OperatorEndAvailable

class cymple.builder.OperatorEndAvailable(query)

Bases: QueryStartAvailable, Yield, With, Return

A class decorator declares a OperatorEnd is available in the current query.

__init__(query)

Initialize the query object.

Methods

__init__(query)

Initialize the query object.

call()

Concatenate the "CALL" clause.

create()

Concatenate the "CREATE" clause.

cypher(cypher_query_str)

Concatenate a cypher query string

get()

Get the final query string .

match()

Concatenate the "MATCH" clause.

match_optional()

Concatenate the "MATCH" clause.

merge()

Concatenate the "MERGE" clause.

return_literal(literal)

Concatenate a literal RETURN statement.

return_mapping(mappings)

Concatenate a RETURN statement for multiple objects.

with_(variables)

Concatenate a WITH clause, keeping one or more variables given in 'variables' arg.

yield_(mappings)

Concatenate a YIELD cluase, to yield a list of Mappings.

call()

Concatenate the “CALL” clause.

Returns:

A Query object with a query that contains the new clause.

Return type:

CallAvailable

create()

Concatenate the “CREATE” clause.

Returns:

A Query object with a query that contains the new clause.

Return type:

CreateAvailable

cypher(cypher_query_str)

Concatenate a cypher query string

get()

Get the final query string .

match()

Concatenate the “MATCH” clause.

Returns:

A Query object with a query that contains the new clause.

Return type:

MatchAvailable

match_optional()

Concatenate the “MATCH” clause.

Returns:

A Query object with a query that contains the new clause.

Return type:

MatchAvailable

merge()

Concatenate the “MERGE” clause.

Returns:

A Query object with a query that contains the new clause.

Return type:

MergeAvailable

return_literal(literal: str)

Concatenate a literal RETURN statement.

Parameters:

literal (str) – A Cypher string describing the objects to be returned, referencing name/names which were defined earlier in the query

Returns:

A Query object with a query that contains the new clause.

Return type:

ReturnAvailable

return_mapping(mappings: List[Mapping])

Concatenate a RETURN statement for multiple objects.

Parameters:

mappings (List[Mapping]) – The mapping (or a list of mappings) of db property names to code names, to be returned

Returns:

A Query object with a query that contains the new clause.

Return type:

ReturnAvailable

with_(variables: str)

Concatenate a WITH clause, keeping one or more variables given in ‘variables’ arg.

Parameters:

variables (str) – A string refering to previously obtained variables, comma seperated

Returns:

A Query object with a query that contains the new clause.

Return type:

WithAvailable

yield_(mappings: List[Mapping])

Concatenate a YIELD cluase, to yield a list of Mappings.

Parameters:

mappings (List[Mapping]) – The list of mappings of db properties names to code names, to be yielded

Returns:

A Query object with a query that contains the new clause.

Return type:

YieldAvailable