safi50 commented on issue #831:
URL: https://github.com/apache/age/issues/831#issuecomment-1518683672

   This `execCypher()` function executes a single Cypher query, passed as a 
string parameter, and return the result. It manages the connection and cursor 
creation/closure internally.
   
   On the other hand, `cypher()` creates a reusable Age object that you can use 
to execute multiple Cypher queries within the same connection. The cypher() 
function takes a connection object (created using `psycopg2.connect()`) and the 
graph name as arguments. 
   
   Using `cypher()`, you don't need to manage connections and cursors 
explicitly.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to