altcodepro-polydb-python 2.3.21__py3-none-any.whl → 2.3.22__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.
- {altcodepro_polydb_python-2.3.21.dist-info → altcodepro_polydb_python-2.3.22.dist-info}/METADATA +1 -1
- {altcodepro_polydb_python-2.3.21.dist-info → altcodepro_polydb_python-2.3.22.dist-info}/RECORD +6 -6
- polydb/adapters/PostgreSQLAdapter.py +4 -2
- {altcodepro_polydb_python-2.3.21.dist-info → altcodepro_polydb_python-2.3.22.dist-info}/WHEEL +0 -0
- {altcodepro_polydb_python-2.3.21.dist-info → altcodepro_polydb_python-2.3.22.dist-info}/licenses/LICENSE +0 -0
- {altcodepro_polydb_python-2.3.21.dist-info → altcodepro_polydb_python-2.3.22.dist-info}/top_level.txt +0 -0
{altcodepro_polydb_python-2.3.21.dist-info → altcodepro_polydb_python-2.3.22.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: altcodepro-polydb-python
|
|
3
|
-
Version: 2.3.
|
|
3
|
+
Version: 2.3.22
|
|
4
4
|
Summary: Production-ready multi-cloud database abstraction layer with connection pooling, retry logic, and thread safety
|
|
5
5
|
Author: AltCodePro
|
|
6
6
|
Project-URL: Homepage, https://github.com/altcodepro/polydb-python
|
{altcodepro_polydb_python-2.3.21.dist-info → altcodepro_polydb_python-2.3.22.dist-info}/RECORD
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
altcodepro_polydb_python-2.3.
|
|
1
|
+
altcodepro_polydb_python-2.3.22.dist-info/licenses/LICENSE,sha256=9X8GLocsBwy-5aR5JGOt2SAMDDPs9Qv-YnqmHBHOXrw,1067
|
|
2
2
|
polydb/PolyDB.py,sha256=MG7-nV59zDvrUQwXNEgV4eetHCeW9TYY9DQqtxu_r7k,23543
|
|
3
3
|
polydb/__init__.py,sha256=zx6yhNfaMDdshdDdcj4F8Vp9phCBA71mRFVi68IUELM,1459
|
|
4
4
|
polydb/advanced_query.py,sha256=cxMB-EB-qT3bWXJlhmjnMCUtrzogORWyoEfS50Dy7go,4280
|
|
@@ -36,7 +36,7 @@ polydb/adapters/GCPFilestoreAdapter.py,sha256=yjFQQwsWYWc8mo8XwMViVTWb5_D--xAyTM
|
|
|
36
36
|
polydb/adapters/GCPPubSubAdapter.py,sha256=7XNots2VA0ReEDku-rjg-OTYmftIpx5UgnXYDdXNkOo,8692
|
|
37
37
|
polydb/adapters/GCPStorageAdapter.py,sha256=9yS1Jhcn5_rCRdZ5uOqcRW6Ba-UNb6VOYpwENP-C6Qk,7133
|
|
38
38
|
polydb/adapters/MongoDBAdapter.py,sha256=vX3SAHDLbTnHABGesES9N-gYSQqPqdqFLJgd7pYWZzw,7471
|
|
39
|
-
polydb/adapters/PostgreSQLAdapter.py,sha256=
|
|
39
|
+
polydb/adapters/PostgreSQLAdapter.py,sha256=6JPr-Szs3y98TjU9m2hEV4Kpa_-phNY3GcXAufgdWtc,34888
|
|
40
40
|
polydb/adapters/S3Adapter.py,sha256=5R0zHAL2SkGFjp1L3bp-IU468bXYdSf6nKx974MN104,7586
|
|
41
41
|
polydb/adapters/S3CompatibleAdapter.py,sha256=jpafqbAjA8-irdXBrfXa1QJySIzrcUQ6UrFt5h5FAEc,7006
|
|
42
42
|
polydb/adapters/SQSAdapter.py,sha256=1vfbNoqIDy-b8t2xcxy91SoxSYBPFDfUh7yCQWxdS84,5778
|
|
@@ -60,7 +60,7 @@ polydb/observability/logging.py,sha256=gv1SshNjaSkmR98Uv7Qbwq3gkeQUzVCA4ichqHKL6
|
|
|
60
60
|
polydb/services/__init__.py,sha256=nMolMXzmhejRSm7f42kU9fCHF0GIpqpejN2kywuBsUQ,241
|
|
61
61
|
polydb/services/compliance_service.py,sha256=-0ncX7PrXy4-NuyWXIv65cLUsqz0jXzb3LtsD8rlrXE,4983
|
|
62
62
|
polydb/services/security_service.py,sha256=q7GzK6sbMnBBsc4fuL4oXTd-ui2b-MYQyrWTBvdVNSk,5062
|
|
63
|
-
altcodepro_polydb_python-2.3.
|
|
64
|
-
altcodepro_polydb_python-2.3.
|
|
65
|
-
altcodepro_polydb_python-2.3.
|
|
66
|
-
altcodepro_polydb_python-2.3.
|
|
63
|
+
altcodepro_polydb_python-2.3.22.dist-info/METADATA,sha256=cy4CiBLSydIYi2-bkyCUBIZP0jKvQNVg9OiX1PJ7U9Q,12359
|
|
64
|
+
altcodepro_polydb_python-2.3.22.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
65
|
+
altcodepro_polydb_python-2.3.22.dist-info/top_level.txt,sha256=WgLFWJoYjUhwvyPxJFl6jYLrVFuBJDX3OABf4ocwk_E,7
|
|
66
|
+
altcodepro_polydb_python-2.3.22.dist-info/RECORD,,
|
|
@@ -129,8 +129,10 @@ class PostgreSQLAdapter:
|
|
|
129
129
|
try:
|
|
130
130
|
conn = self._pool.getconn() # type: ignore
|
|
131
131
|
|
|
132
|
-
if
|
|
133
|
-
|
|
132
|
+
# Only ping if the connection is in an error state (closed/broken),
|
|
133
|
+
# not on every call. TCP keepalives handle staleness detection.
|
|
134
|
+
if conn.closed:
|
|
135
|
+
self.logger.warning("Closed connection detected from pool, closing and retrying")
|
|
134
136
|
self._pool.putconn(conn, close=True) # type: ignore
|
|
135
137
|
conn = self._pool.getconn() # type: ignore
|
|
136
138
|
self._drain_transaction(conn)
|
{altcodepro_polydb_python-2.3.21.dist-info → altcodepro_polydb_python-2.3.22.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|