wcp-library 1.4.2__py3-none-any.whl → 1.4.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.
- wcp_library/sql/__init__.py +1 -0
- wcp_library/sql/oracle.py +2 -2
- wcp_library/sql/postgres.py +2 -3
- {wcp_library-1.4.2.dist-info → wcp_library-1.4.4.dist-info}/METADATA +2 -3
- {wcp_library-1.4.2.dist-info → wcp_library-1.4.4.dist-info}/RECORD +6 -6
- {wcp_library-1.4.2.dist-info → wcp_library-1.4.4.dist-info}/WHEEL +1 -1
wcp_library/sql/__init__.py
CHANGED
wcp_library/sql/oracle.py
CHANGED
@@ -202,7 +202,7 @@ class OracleConnection(object):
|
|
202
202
|
self._session_pool.release(connection)
|
203
203
|
|
204
204
|
@retry
|
205
|
-
def fetch_data(self, query: str, packed_data=None):
|
205
|
+
def fetch_data(self, query: str, packed_data=None) -> list:
|
206
206
|
"""
|
207
207
|
Fetch the data from the query
|
208
208
|
|
@@ -435,7 +435,7 @@ class AsyncOracleConnection(object):
|
|
435
435
|
await connection.commit()
|
436
436
|
|
437
437
|
@async_retry
|
438
|
-
async def fetch_data(self, query: str, packed_data=None):
|
438
|
+
async def fetch_data(self, query: str, packed_data=None) -> list:
|
439
439
|
"""
|
440
440
|
Fetch the data from the query
|
441
441
|
|
wcp_library/sql/postgres.py
CHANGED
@@ -184,7 +184,7 @@ class PostgresConnection(object):
|
|
184
184
|
cursor.executemany(query, dictionary)
|
185
185
|
|
186
186
|
@retry
|
187
|
-
def fetch_data(self, query: SQL | str, packed_data=None):
|
187
|
+
def fetch_data(self, query: SQL | str, packed_data=None) -> list[tuple]:
|
188
188
|
"""
|
189
189
|
Fetch the data from the query
|
190
190
|
|
@@ -406,7 +406,7 @@ class AsyncPostgresConnection(object):
|
|
406
406
|
await cursor.executemany(query, dictionary)
|
407
407
|
|
408
408
|
@async_retry
|
409
|
-
async def fetch_data(self, query: SQL | str, packed_data=None):
|
409
|
+
async def fetch_data(self, query: SQL | str, packed_data=None) -> list[tuple]:
|
410
410
|
"""
|
411
411
|
Fetch the data from the query
|
412
412
|
|
@@ -417,7 +417,6 @@ class AsyncPostgresConnection(object):
|
|
417
417
|
|
418
418
|
async with self._session_pool.connection() as connection:
|
419
419
|
cursor = connection.cursor()
|
420
|
-
# await cursor.execute("set datestyle = 'SQL, DMY'")
|
421
420
|
if packed_data:
|
422
421
|
await cursor.execute(query, packed_data)
|
423
422
|
else:
|
@@ -1,8 +1,7 @@
|
|
1
|
-
Metadata-Version: 2.
|
1
|
+
Metadata-Version: 2.3
|
2
2
|
Name: wcp-library
|
3
|
-
Version: 1.4.
|
3
|
+
Version: 1.4.4
|
4
4
|
Summary: Common utilites for internal development at WCP
|
5
|
-
Home-page: https://github.com/Whitecap-DNA/WCP-Library
|
6
5
|
Author: Mitch-Petersen
|
7
6
|
Author-email: mitch.petersen@wcap.ca
|
8
7
|
Requires-Python: >=3.12,<4.0
|
@@ -14,10 +14,10 @@ wcp_library/ftp/sftp.py,sha256=hykXGLGdxe7DYAxFdTwjPjTEOYuIpSMyK3NOiTQNUK0,4176
|
|
14
14
|
wcp_library/informatica.py,sha256=_g9lzSd-JLsY4e5_g6YcxQtOxP6fkg4sGfvNJaAN7jY,8123
|
15
15
|
wcp_library/logging.py,sha256=e6gG7HFgUrMajUZs4Gs0atFfOJJmdmxN0GerfynNWlY,2061
|
16
16
|
wcp_library/selenium_helper.py,sha256=w8YUC0pq7TkWiobc2ri4QR5fcHrrZgB5RAEfAdxZiuk,3780
|
17
|
-
wcp_library/sql/__init__.py,sha256=
|
18
|
-
wcp_library/sql/oracle.py,sha256=
|
19
|
-
wcp_library/sql/postgres.py,sha256=
|
17
|
+
wcp_library/sql/__init__.py,sha256=TwbaOC-bPxJUM9XuT4sKq3erEvQ4IX_E2qNns_-ToFI,1932
|
18
|
+
wcp_library/sql/oracle.py,sha256=XSH4nM9YK6kM8bDweHmDYPi2XAjfGxFO_cfDvk_akB0,15788
|
19
|
+
wcp_library/sql/postgres.py,sha256=Kfj5kfNwLyhE6bZIcqj6tjpbiGSyAMErY_Kr9eGm-2Q,14814
|
20
20
|
wcp_library/time.py,sha256=ktSzhK7SZnGPNXobFexnhFGQAcriLCJQKxnO0fed8fQ,1740
|
21
|
-
wcp_library-1.4.
|
22
|
-
wcp_library-1.4.
|
23
|
-
wcp_library-1.4.
|
21
|
+
wcp_library-1.4.4.dist-info/METADATA,sha256=_KD6IJJBLJ_8kSAFmsYwMklZVOjEI-_CiHLJBPTbDOA,1497
|
22
|
+
wcp_library-1.4.4.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
23
|
+
wcp_library-1.4.4.dist-info/RECORD,,
|