python-databases 0.1.2__py3-none-any.whl → 0.1.3__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.
- python_databases/postgresql_infrastructure/__init__.py +4 -0
- python_databases/postgresql_infrastructure/postgresql.py +2 -2
- {python_databases-0.1.2.dist-info → python_databases-0.1.3.dist-info}/METADATA +1 -1
- python_databases-0.1.3.dist-info/RECORD +10 -0
- python_databases-0.1.2.dist-info/RECORD +0 -10
- {python_databases-0.1.2.dist-info → python_databases-0.1.3.dist-info}/WHEEL +0 -0
- {python_databases-0.1.2.dist-info → python_databases-0.1.3.dist-info}/licenses/LICENSE +0 -0
- {python_databases-0.1.2.dist-info → python_databases-0.1.3.dist-info}/top_level.txt +0 -0
|
@@ -42,7 +42,7 @@ class PostgreSQL:
|
|
|
42
42
|
self.create_connection()
|
|
43
43
|
return self._cursor
|
|
44
44
|
|
|
45
|
-
@retry(stop_max_attempt_number=3, wait_fixed=180000)
|
|
45
|
+
# @retry(stop_max_attempt_number=3, wait_fixed=180000)
|
|
46
46
|
def create_connection(self):
|
|
47
47
|
self.logger.info(f"Create connection to {self.host}:{self.port}")
|
|
48
48
|
|
|
@@ -53,7 +53,7 @@ class PostgreSQL:
|
|
|
53
53
|
user=self.username,
|
|
54
54
|
password=self.password,
|
|
55
55
|
)
|
|
56
|
-
self._cursor = self.
|
|
56
|
+
self._cursor = self._client.cursor(cursor_factory=extras.DictCursor)
|
|
57
57
|
|
|
58
58
|
def execute_query(self, query: str, params: Optional[Union[tuple, dict[str, Any]]] = None) -> None:
|
|
59
59
|
self.logger.debug(f"Fetch rows from DB by query {query} with params {params}")
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
python_databases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
python_databases/elasticsearch_infrastructure/__init__.py,sha256=zLL3GJwgu5a55TgRhyl_mDbjc-qQBWOskRc0y9diqyw,296
|
|
3
|
+
python_databases/elasticsearch_infrastructure/elasticsearch.py,sha256=U8PVhjImk_S35KJHKEFK7Fl8cL-0A36yzLJ_KgtNTIY,11160
|
|
4
|
+
python_databases/postgresql_infrastructure/__init__.py,sha256=h1eJx0ogbtcF6UnN2c7uW5iCuadDab3So1VI15y3kWA,150
|
|
5
|
+
python_databases/postgresql_infrastructure/postgresql.py,sha256=uYf8llU0p4ooLWV-x-aL959267Uq9OgQXzCf8CCC8f8,2819
|
|
6
|
+
python_databases-0.1.3.dist-info/licenses/LICENSE,sha256=cSikHY6SZFsPZSBizCDAJ0-Bjjzxt-JtX6TVbKxwimo,1067
|
|
7
|
+
python_databases-0.1.3.dist-info/METADATA,sha256=fLorTLUGKXmKMl661NuSJJlmbPBUoHcb6QkvhBeJx-A,1792
|
|
8
|
+
python_databases-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
python_databases-0.1.3.dist-info/top_level.txt,sha256=fXcMUntaYJfKeFS7FjQ6DY4WVXYBsgdrDmhOudYs-vg,17
|
|
10
|
+
python_databases-0.1.3.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
python_databases/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
python_databases/elasticsearch_infrastructure/__init__.py,sha256=zLL3GJwgu5a55TgRhyl_mDbjc-qQBWOskRc0y9diqyw,296
|
|
3
|
-
python_databases/elasticsearch_infrastructure/elasticsearch.py,sha256=U8PVhjImk_S35KJHKEFK7Fl8cL-0A36yzLJ_KgtNTIY,11160
|
|
4
|
-
python_databases/postgresql_infrastructure/__init__.py,sha256=LG-zblOfMP6hVPKsBg0_Vu7Np90aDwZoQtZkamDOsus,46
|
|
5
|
-
python_databases/postgresql_infrastructure/postgresql.py,sha256=Hnn58f6TT2NPOyAou5EvBuH4xE6qGQfYep8wufrC_r8,2816
|
|
6
|
-
python_databases-0.1.2.dist-info/licenses/LICENSE,sha256=cSikHY6SZFsPZSBizCDAJ0-Bjjzxt-JtX6TVbKxwimo,1067
|
|
7
|
-
python_databases-0.1.2.dist-info/METADATA,sha256=wM_Kf2fxKvMk48tlW3Kx-DNnXE06-rwuQTT5hpuHSgc,1792
|
|
8
|
-
python_databases-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
-
python_databases-0.1.2.dist-info/top_level.txt,sha256=fXcMUntaYJfKeFS7FjQ6DY4WVXYBsgdrDmhOudYs-vg,17
|
|
10
|
-
python_databases-0.1.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|