You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by "mahinash26 (via GitHub)" <gi...@apache.org> on 2023/04/30 16:27:58 UTC
[GitHub] [age] mahinash26 commented on issue #831: Python Driver : Whats the difference between execCypher() and cypher() in age.py
mahinash26 commented on issue #831:
URL: https://github.com/apache/age/issues/831#issuecomment-1529068506
There are two functions for executing Cypher queries in PostgreSQL: execCypher() and cypher().
The execCypher() function uses a PostgreSQL-prepared statement to execute the Cypher query. This method is more robust regarding error handling because it detects and handles errors better than cypher().
The cypher() function, on the other hand, builds a PostgreSQL statement that performs the Cypher query using the buildCypher() function. This approach is more customizable and flexible as it allows for more control over the details of the query execution.
Simply put, execCypher() is a safer and more reliable method for executing Cypher queries, while cypher() gives users more control and flexibility over how the queries are executed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@age.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org