python-arango-async 1.2.0__py3-none-any.whl → 1.2.2__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/collection.py +1 -1
- arangoasync/typings.py +18 -0
- arangoasync/version.py +1 -1
- {python_arango_async-1.2.0.dist-info → python_arango_async-1.2.2.dist-info}/METADATA +1 -1
- {python_arango_async-1.2.0.dist-info → python_arango_async-1.2.2.dist-info}/RECORD +9 -9
- {python_arango_async-1.2.0.dist-info → python_arango_async-1.2.2.dist-info}/WHEEL +1 -1
- {python_arango_async-1.2.0.dist-info → python_arango_async-1.2.2.dist-info}/licenses/LICENSE +0 -0
- {python_arango_async-1.2.0.dist-info → python_arango_async-1.2.2.dist-info}/top_level.txt +0 -0
arangoasync/aql.py
CHANGED
|
@@ -369,6 +369,7 @@ class AQL:
|
|
|
369
369
|
enabled: Optional[bool] = None,
|
|
370
370
|
max_slow_queries: Optional[int] = None,
|
|
371
371
|
slow_query_threshold: Optional[int] = None,
|
|
372
|
+
slow_streaming_query_threshold: Optional[int] = None,
|
|
372
373
|
max_query_string_length: Optional[int] = None,
|
|
373
374
|
track_bind_vars: Optional[bool] = None,
|
|
374
375
|
track_slow_queries: Optional[int] = None,
|
|
@@ -382,6 +383,8 @@ class AQL:
|
|
|
382
383
|
entries are discarded first.
|
|
383
384
|
slow_query_threshold (int | None): Runtime threshold (in seconds) for treating a
|
|
384
385
|
query as slow.
|
|
386
|
+
slow_streaming_query_threshold (int | None): Runtime threshold (in seconds) for
|
|
387
|
+
treating a streaming query as slow.
|
|
385
388
|
max_query_string_length (int | None): The maximum query string length (in bytes)
|
|
386
389
|
to keep in the list of queries.
|
|
387
390
|
track_bind_vars (bool | None): If set to `True`, track bind variables used in
|
|
@@ -409,6 +412,8 @@ class AQL:
|
|
|
409
412
|
data["maxQueryStringLength"] = max_query_string_length
|
|
410
413
|
if slow_query_threshold is not None:
|
|
411
414
|
data["slowQueryThreshold"] = slow_query_threshold
|
|
415
|
+
if slow_streaming_query_threshold is not None:
|
|
416
|
+
data["slowStreamingQueryThreshold"] = slow_streaming_query_threshold
|
|
412
417
|
if track_bind_vars is not None:
|
|
413
418
|
data["trackBindVars"] = track_bind_vars
|
|
414
419
|
if track_slow_queries is not None:
|
arangoasync/collection.py
CHANGED
|
@@ -397,7 +397,7 @@ class Collection(Generic[T, U, V]):
|
|
|
397
397
|
|
|
398
398
|
Args:
|
|
399
399
|
type (str): Type attribute (ex. "persistent", "inverted", "ttl", "mdi",
|
|
400
|
-
"geo").
|
|
400
|
+
"geo", "vector").
|
|
401
401
|
fields (dict | list): Fields to index.
|
|
402
402
|
options (dict | None): Additional index options.
|
|
403
403
|
|
arangoasync/typings.py
CHANGED
|
@@ -727,6 +727,10 @@ class CollectionProperties(JsonWrapper):
|
|
|
727
727
|
def computed_values(self) -> Optional[Json]:
|
|
728
728
|
return self._data.get("computedValues")
|
|
729
729
|
|
|
730
|
+
@property
|
|
731
|
+
def supportsRBAC(self) -> Optional[bool]:
|
|
732
|
+
return self._data.get("supportsRBAC")
|
|
733
|
+
|
|
730
734
|
@property
|
|
731
735
|
def object_id(self) -> str:
|
|
732
736
|
return self._data["objectId"] # type: ignore[no-any-return]
|
|
@@ -808,6 +812,8 @@ class CollectionProperties(JsonWrapper):
|
|
|
808
812
|
result["computedValues"] = data["computedValues"]
|
|
809
813
|
if "internalValidatorType" in data:
|
|
810
814
|
result["internal_validator_type"] = data["internalValidatorType"]
|
|
815
|
+
if "supportsRBAC" in data:
|
|
816
|
+
result["supportsRBAC"] = data["supportsRBAC"]
|
|
811
817
|
return result
|
|
812
818
|
|
|
813
819
|
def format(self, formatter: Optional[Formatter] = None) -> Json:
|
|
@@ -1121,6 +1127,14 @@ class IndexProperties(JsonWrapper):
|
|
|
1121
1127
|
def features(self) -> Optional[List[str]]:
|
|
1122
1128
|
return self._data.get("features")
|
|
1123
1129
|
|
|
1130
|
+
@property
|
|
1131
|
+
def error_message(self) -> Optional[str]:
|
|
1132
|
+
return self._data.get("errorMessage")
|
|
1133
|
+
|
|
1134
|
+
@property
|
|
1135
|
+
def training_state(self) -> Optional[str]:
|
|
1136
|
+
return self._data.get("trainingState")
|
|
1137
|
+
|
|
1124
1138
|
@staticmethod
|
|
1125
1139
|
def compatibility_formatter(data: Json) -> Json:
|
|
1126
1140
|
"""python-arango compatibility formatter."""
|
|
@@ -1179,6 +1193,10 @@ class IndexProperties(JsonWrapper):
|
|
|
1179
1193
|
result["writebuffer_max_size"] = data["writebufferSizeMax"]
|
|
1180
1194
|
if "optimizeTopK" in data:
|
|
1181
1195
|
result["optimizeTopK"] = data["optimizeTopK"]
|
|
1196
|
+
if "errorMessage" in data:
|
|
1197
|
+
result["error_message"] = data["errorMessage"]
|
|
1198
|
+
if "trainingState" in data:
|
|
1199
|
+
result["training_state"] = data["trainingState"]
|
|
1182
1200
|
return result
|
|
1183
1201
|
|
|
1184
1202
|
def format(self, formatter: Optional[Formatter] = None) -> Json:
|
arangoasync/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "1.2.
|
|
1
|
+
__version__ = "1.2.2"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-arango-async
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: Async Python Driver for ArangoDB
|
|
5
5
|
Author-email: Alexandru Petenchea <alexandru.petenchea@arangodb.com>, Anthony Mahanna <anthony.mahanna@arangodb.com>
|
|
6
6
|
Maintainer-email: Alexandru Petenchea <alexandru.petenchea@arangodb.com>, Anthony Mahanna <anthony.mahanna@arangodb.com>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
arangoasync/__init__.py,sha256=HEJ7_q_pRcS9Gco3poa89jLQr_zDrDrHAXCEJMgjUFI,196
|
|
2
|
-
arangoasync/aql.py,sha256=
|
|
2
|
+
arangoasync/aql.py,sha256=RKH0VAWs4zxm3sGvgzTO_GF6-F1gsZubvt7FHf_mV70,30271
|
|
3
3
|
arangoasync/auth.py,sha256=16apz1_IvAB_ZSyenoPha6F_JkbHokmOWFHxPL_swxQ,3025
|
|
4
4
|
arangoasync/backup.py,sha256=6ZUDjP44bilv056K2fo8l7BnmoeksJ9G9keMVP7i9FI,10577
|
|
5
5
|
arangoasync/client.py,sha256=MKLYXPdDhBezFIKX1H5e7-dKzYnIHwbfN0CO8AEsAzs,10054
|
|
6
6
|
arangoasync/cluster.py,sha256=t-65G17__SLLSBgigoJN5YDKwEAzS3t5vc2CGvrzWTo,17097
|
|
7
|
-
arangoasync/collection.py,sha256=
|
|
7
|
+
arangoasync/collection.py,sha256=BpyoYSgSIJ3PfPkqh6PwT7HLg66QLGkNA4eqx6xkYaM,122457
|
|
8
8
|
arangoasync/compression.py,sha256=vMhcg5nQPkbgplk48vxARUnJ6YeIwrCLC6pDCVJSwo0,3804
|
|
9
9
|
arangoasync/connection.py,sha256=f6HQOZHayluNVyH-j-sujlE_dvQrVxC1lPWnzrfQLqY,17459
|
|
10
10
|
arangoasync/cursor.py,sha256=RQJOtNpxEx5n3eKx7UYPl1N8gzWYQESjufvakr18azk,8464
|
|
@@ -23,10 +23,10 @@ arangoasync/resolver.py,sha256=icsmQIkklrvq-a88vIR8C-M3rcv5BJxhDE2PK8LenG0,3409
|
|
|
23
23
|
arangoasync/response.py,sha256=VMnoWgtyrh1JGK7mEgRNsUtSawxWMgFjHT-Cff4d8zc,2132
|
|
24
24
|
arangoasync/result.py,sha256=NVwFxpYUDujHNRCqCZIBOlGLzB7XsiSmjWPFhUgRS6k,233
|
|
25
25
|
arangoasync/serialization.py,sha256=ExRqrEpbk11Hb3AfFUJGqPlGBD3dbvwQg_xsZUsrm6I,2910
|
|
26
|
-
arangoasync/typings.py,sha256=
|
|
27
|
-
arangoasync/version.py,sha256=
|
|
28
|
-
python_arango_async-1.2.
|
|
29
|
-
python_arango_async-1.2.
|
|
30
|
-
python_arango_async-1.2.
|
|
31
|
-
python_arango_async-1.2.
|
|
32
|
-
python_arango_async-1.2.
|
|
26
|
+
arangoasync/typings.py,sha256=OeNIzsGTq8NMfJC0GawfeyH0BXDMETydDwGVDBhm5do,69850
|
|
27
|
+
arangoasync/version.py,sha256=uuf4VNtTNA93fMhoAur9YafzaKJFnczY-H1SSCSuRVQ,22
|
|
28
|
+
python_arango_async-1.2.2.dist-info/licenses/LICENSE,sha256=6zoGhJon2tcnvzmycirNjLNBZ6rlLJtYDdVGO76RXVM,1065
|
|
29
|
+
python_arango_async-1.2.2.dist-info/METADATA,sha256=jrTRv9Yilmo3jZIo-iW3OqzqARtrTiX3VBaemHzT65U,7940
|
|
30
|
+
python_arango_async-1.2.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
31
|
+
python_arango_async-1.2.2.dist-info/top_level.txt,sha256=uabwJ6t-MiIaZQXGUvYikeSbZDcF0RK37GzikBnDz5k,12
|
|
32
|
+
python_arango_async-1.2.2.dist-info/RECORD,,
|
{python_arango_async-1.2.0.dist-info → python_arango_async-1.2.2.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
|
File without changes
|