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 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(*(session.close() for session in self._sessions))
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,