python-arango-async 0.0.2__py3-none-any.whl → 0.0.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- arangoasync/aql.py +5 -0
- arangoasync/client.py +3 -1
- arangoasync/collection.py +1738 -788
- arangoasync/connection.py +3 -0
- arangoasync/database.py +242 -23
- arangoasync/exceptions.py +52 -0
- arangoasync/graph.py +1050 -0
- arangoasync/http.py +22 -0
- arangoasync/typings.py +247 -5
- arangoasync/version.py +1 -1
- {python_arango_async-0.0.2.dist-info → python_arango_async-0.0.4.dist-info}/METADATA +67 -29
- python_arango_async-0.0.4.dist-info/RECORD +28 -0
- {python_arango_async-0.0.2.dist-info → python_arango_async-0.0.4.dist-info}/WHEEL +1 -1
- python_arango_async-0.0.2.dist-info/RECORD +0 -27
- {python_arango_async-0.0.2.dist-info → python_arango_async-0.0.4.dist-info}/licenses/LICENSE +0 -0
- {python_arango_async-0.0.2.dist-info → python_arango_async-0.0.4.dist-info}/top_level.txt +0 -0
arangoasync/aql.py
CHANGED
|
@@ -238,6 +238,11 @@ class AQL:
|
|
|
238
238
|
"""Return the name of the current database."""
|
|
239
239
|
return self._executor.db_name
|
|
240
240
|
|
|
241
|
+
@property
|
|
242
|
+
def context(self) -> str:
|
|
243
|
+
"""Return the current API execution context."""
|
|
244
|
+
return self._executor.context
|
|
245
|
+
|
|
241
246
|
@property
|
|
242
247
|
def serializer(self) -> Serializer[Json]:
|
|
243
248
|
"""Return the serializer."""
|
arangoasync/client.py
CHANGED
|
@@ -139,7 +139,9 @@ class ArangoClient:
|
|
|
139
139
|
|
|
140
140
|
async def close(self) -> None:
|
|
141
141
|
"""Close HTTP sessions."""
|
|
142
|
-
await asyncio.gather(
|
|
142
|
+
await asyncio.gather(
|
|
143
|
+
*(self._http_client.close_session(session) for session in self._sessions)
|
|
144
|
+
)
|
|
143
145
|
|
|
144
146
|
async def db(
|
|
145
147
|
self,
|