@@ -64,6 +64,15 @@ def name(self) -> str:
6464 """Name of the graph."""
6565 return self ._name
6666
67+ @property
68+ def db_name (self ) -> str :
69+ """Return the name of the current database.
70+
71+ Returns:
72+ str: Database name.
73+ """
74+ return self ._executor .db_name
75+
6776 @property
6877 def serializer (self ) -> Serializer [Json ]:
6978 """Return the serializer."""
@@ -686,16 +695,16 @@ def response_handler(resp: Response) -> EdgeCollection[T, U, V]:
686695 async def delete_edge_definition (
687696 self ,
688697 name : str ,
689- purge : bool = False ,
698+ drop_collections : Optional [ bool ] = None ,
690699 wait_for_sync : Optional [bool ] = None ,
691700 ) -> None :
692701 """Delete an edge definition from the graph.
693702
694703 Args:
695704 name (str): Edge collection name.
696- purge (bool): If set to `True`, the edge definition is not just removed
697- from the graph but the edge collection is also deleted completely
698- from the database.
705+ drop_collections (bool | None ): If set to `True`, the edge definition is not
706+ just removed from the graph but the edge collection is also deleted
707+ completely from the database.
699708 wait_for_sync (bool | None): If set to `True`, the operation waits for
700709 changes to be synced to disk before returning.
701710
@@ -705,7 +714,9 @@ async def delete_edge_definition(
705714 References:
706715 - `remove-an-edge-definition <https://docs.arangodb.com/stable/develop/http-api/graphs/named-graphs/#remove-an-edge-definition>`__
707716 """ # noqa: E501
708- params : Params = {"dropCollections" : purge }
717+ params : Params = {}
718+ if drop_collections is not None :
719+ params ["dropCollections" ] = drop_collections
709720 if wait_for_sync is not None :
710721 params ["waitForSync" ] = wait_for_sync
711722
0 commit comments