sunholo 0.123.4__py3-none-any.whl → 0.123.5__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.
- sunholo/database/alloydb_client.py +10 -4
- {sunholo-0.123.4.dist-info → sunholo-0.123.5.dist-info}/METADATA +1 -1
- {sunholo-0.123.4.dist-info → sunholo-0.123.5.dist-info}/RECORD +7 -7
- {sunholo-0.123.4.dist-info → sunholo-0.123.5.dist-info}/WHEEL +0 -0
- {sunholo-0.123.4.dist-info → sunholo-0.123.5.dist-info}/entry_points.txt +0 -0
- {sunholo-0.123.4.dist-info → sunholo-0.123.5.dist-info}/licenses/LICENSE.txt +0 -0
- {sunholo-0.123.4.dist-info → sunholo-0.123.5.dist-info}/top_level.txt +0 -0
@@ -14,7 +14,6 @@ from .uuid import generate_uuid_from_object_id
|
|
14
14
|
from ..custom_logging import log
|
15
15
|
from ..utils import ConfigManager
|
16
16
|
from ..components import get_embeddings
|
17
|
-
|
18
17
|
class AlloyDBClient:
|
19
18
|
"""
|
20
19
|
A class to manage interactions with an AlloyDB instance.
|
@@ -530,9 +529,16 @@ class AlloyDBClient:
|
|
530
529
|
bool: True if connection is valid, False otherwise
|
531
530
|
"""
|
532
531
|
try:
|
533
|
-
#
|
534
|
-
|
535
|
-
|
532
|
+
# For pg8000 engine, use synchronous connection
|
533
|
+
if self.engine_type == "pg8000":
|
534
|
+
# Use direct synchronous query
|
535
|
+
with self.engine.connect() as conn:
|
536
|
+
conn.execute(sqlalchemy.text("SELECT 1"))
|
537
|
+
return True
|
538
|
+
else:
|
539
|
+
# For langchain, use async connection
|
540
|
+
await self._execute_sql_async_langchain("SELECT 1")
|
541
|
+
return True
|
536
542
|
except Exception as e:
|
537
543
|
log.warning(f"Database connection check failed: {e}")
|
538
544
|
return False
|
@@ -60,7 +60,7 @@ sunholo/components/retriever.py,sha256=Wmchv3huAM4w7DIS-a5Lp9Hi7M8pE6vZdxgseiT9S
|
|
60
60
|
sunholo/components/vectorstore.py,sha256=k7GS1Y5c6ZGXSDAJvyCes6dTjhDAi0fjGbVLqpyfzBc,5918
|
61
61
|
sunholo/database/__init__.py,sha256=bpB5Nk21kwqYj-qdVnvNgXjLsbflnH4g-San7OHMqR4,283
|
62
62
|
sunholo/database/alloydb.py,sha256=x1zUMB-EVWbE2Zvp4nAs2Z-tB_kOZmS45H2lwVHdYnk,11678
|
63
|
-
sunholo/database/alloydb_client.py,sha256=
|
63
|
+
sunholo/database/alloydb_client.py,sha256=OCAi7Gopry7tiOOdjka-cldghFpxl6IXWWGEANmFVII,27414
|
64
64
|
sunholo/database/database.py,sha256=VqhZdkXUNdvWn8sUcUV3YNby1JDVf7IykPVXWBtxo9U,7361
|
65
65
|
sunholo/database/lancedb.py,sha256=DyfZntiFKBlVPaFooNN1Z6Pl-LAs4nxWKKuq8GBqN58,715
|
66
66
|
sunholo/database/static_dbs.py,sha256=8cvcMwUK6c32AS2e_WguKXWMkFf5iN3g9WHzsh0C07Q,442
|
@@ -168,9 +168,9 @@ sunholo/vertex/init.py,sha256=1OQwcPBKZYBTDPdyU7IM4X4OmiXLdsNV30C-fee2scQ,2875
|
|
168
168
|
sunholo/vertex/memory_tools.py,sha256=tBZxqVZ4InTmdBvLlOYwoSEWu4-kGquc-gxDwZCC4FA,7667
|
169
169
|
sunholo/vertex/safety.py,sha256=S9PgQT1O_BQAkcqauWncRJaydiP8Q_Jzmu9gxYfy1VA,2482
|
170
170
|
sunholo/vertex/type_dict_to_json.py,sha256=uTzL4o9tJRao4u-gJOFcACgWGkBOtqACmb6ihvCErL8,4694
|
171
|
-
sunholo-0.123.
|
172
|
-
sunholo-0.123.
|
173
|
-
sunholo-0.123.
|
174
|
-
sunholo-0.123.
|
175
|
-
sunholo-0.123.
|
176
|
-
sunholo-0.123.
|
171
|
+
sunholo-0.123.5.dist-info/licenses/LICENSE.txt,sha256=SdE3QjnD3GEmqqg9EX3TM9f7WmtOzqS1KJve8rhbYmU,11345
|
172
|
+
sunholo-0.123.5.dist-info/METADATA,sha256=ahlMOD2O68Y-qNXEM0UmWYJt_6dZyPvjXxdDcB71T8Y,10001
|
173
|
+
sunholo-0.123.5.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
174
|
+
sunholo-0.123.5.dist-info/entry_points.txt,sha256=bZuN5AIHingMPt4Ro1b_T-FnQvZ3teBes-3OyO0asl4,49
|
175
|
+
sunholo-0.123.5.dist-info/top_level.txt,sha256=wt5tadn5--5JrZsjJz2LceoUvcrIvxjHJe-RxuudxAk,8
|
176
|
+
sunholo-0.123.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|