File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -546,7 +546,6 @@ def load(self) -> Result[bool]:
546
546
:rtype: bool
547
547
:raise arango.exceptions.CollectionLoadError: If operation fails.
548
548
"""
549
-
550
549
m = "The load function is deprecated from version 3.8.0 onwards and is a no-op from version 3.9.0 onwards." # noqa: E501
551
550
warn (m , DeprecationWarning , stacklevel = 2 )
552
551
@@ -562,10 +561,18 @@ def response_handler(resp: Response) -> bool:
562
561
def unload (self ) -> Result [bool ]:
563
562
"""Unload the collection from memory.
564
563
564
+ .. note::
565
+ The unload function is deprecated from version 3.8.0 onwards and is a
566
+ no-op from version 3.9.0 onwards. It should no longer be used, as it
567
+ may be removed in a future version of ArangoDB.
568
+
565
569
:return: True if collection was unloaded successfully.
566
570
:rtype: bool
567
571
:raise arango.exceptions.CollectionUnloadError: If operation fails.
568
572
"""
573
+ m = "The unload function is deprecated from version 3.8.0 onwards and is a no-op from version 3.9.0 onwards." # noqa: E501
574
+ warn (m , DeprecationWarning , stacklevel = 2 )
575
+
569
576
request = Request (method = "put" , endpoint = f"/_api/collection/{ self .name } /unload" )
570
577
571
578
def response_handler (resp : Response ) -> bool :
You can’t perform that action at this time.
0 commit comments