cymple.builder.Limit
- class cymple.builder.Limit(query)
Bases:
Query
A class for representing a “LIMIT” clause.
- __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.
- 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: