cymple.builder.OrderByAvailable

class cymple.builder.OrderByAvailable(query)

Bases: Limit, Skip, Union

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

__init__(query)

Initialize the query object.

Methods

__init__(query)

Initialize the query object.

cypher(cypher_query_str)

Concatenate a cypher query string

get()

Get the final query string .

limit(limitation)

Concatenate a limit statement.

skip(skip_count)

Concatenate a skip statement.

union()

Combines the results of two or more queries.

union_all()

Combines the results of two or more queries including duplicates.

cypher(cypher_query_str)

Concatenate a cypher query string

get()

Get the final query string .

limit(limitation: int | str)

Concatenate a limit statement.

Parameters:

limitation (Union[int, str]) – A non-negative integer or a string of cypher expression that evaluates to a non-negative integer (as long as it is not referring to any external variables)

Returns:

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

Return type:

LimitAvailable

skip(skip_count: int | str)

Concatenate a skip statement.

Parameters:

skip_count (Union[int, str]) – A non-negative integer or a string of cypher expression that evaluates to a non-negative integer (as long as it is not referring to any external variables)

Returns:

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

Return type:

SkipAvailable

union()

Combines the results of two or more queries. Duplicates are removed.

Returns:

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

Return type:

UnionAvailable

union_all()

Combines the results of two or more queries including duplicates.

Returns:

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

Return type:

UnionAvailable