AbdulSamad4068 commented on issue #864:
URL: https://github.com/apache/age/issues/864#issuecomment-1526184531

   The reason the cursor is closed after execCypher() with commit=True is 
because the transaction is committed after the query has been executed. This is 
the default behavior in AgeDB.
   
   If you want to access the data after running the query, you need to fetch 
the results before the cursor is closed. To do this, you can call the 
fetchall() method on the cursor object before calling close(). Alternatively, 
you can set the commit argument to False, which will keep the transaction open 
and allow you to access the data after the query is executed.
   
   As for accessing the stored data after execCypher() has been executed, you 
can use the fetchall() method on the cursor object to retrieve the results. 
This method returns a list of tuples, where each tuple represents a row of data 
returned by the query. You can then work with this data in your Python code as 
needed.


-- 
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-unsubscr...@age.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to