cymple.builder.Delete
- class cymple.builder.Delete(query)
Bases:
Query
A class for representing a “DELETE” clause.
- __init__(query)
Initialize the query object.
Methods
__init__
(query)Initialize the query object.
cypher
(cypher_query_str)Concatenate a cypher query string
delete
(ref_name)Concatenate a DELETE clause for a referenced instance from the DB.
detach_delete
(ref_name)Concatenate a DETACH DELETE clause for a referenced instance from the DB.
get
()Get the final query string .
- cypher(cypher_query_str)
Concatenate a cypher query string
- delete(ref_name: str)
Concatenate a DELETE clause for a referenced instance from the DB.
- Parameters:
ref_name (str) – The reference name to be used for the delete operation
- Returns:
A Query object with a query that contains the new clause.
- Return type:
- detach_delete(ref_name: str)
Concatenate a DETACH DELETE clause for a referenced instance from the DB.
- Parameters:
ref_name (str) – The reference name to be used for the delete operation
- Returns:
A Query object with a query that contains the new clause.
- Return type:
- get()
Get the final query string .