Munmud commented on PR #1119:
URL: https://github.com/apache/age/pull/1119#issuecomment-1678966420

   @dehowef  There is no deletegraph function in [AGE 
class](https://github.com/Munmud/age/blob/c874f647b47f97cecc1d13341e2d684e5f07d3e2/drivers/python/age/age.py#L170).
 Here I am  using the function in AGE class just like 
[setUpAge()](https://github.com/Munmud/age/blob/c874f647b47f97cecc1d13341e2d684e5f07d3e2/drivers/python/age/age.py#L178C9-L178C17),
 
   
   The reason I am adding this is because it reduces extrawork of importing 
deletegraph() function when I am using only an instance of AGE class object 
which already has all the functionality
   
   For example, 
   ### Without this changes (separate import for deleteGraph)
   ```py 
   from age import Age, deleteGraph
   ```
   
   ### With this changes (only one import)
   ```py
   from age import Age
   DSN = "host=localhost port=5432 dbname=postgres user=moontasir password=pass"
   graphName = 'bitnine_global_inic'
   c = Age()
   c.connect(graph=graphName, dsn=DSN)
   c.deleteGraph()
   ```


-- 
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