This commit is contained in:
GroovieGermanikus 2023-10-13 20:14:06 +02:00
parent 9eb3c852b1
commit 086706c6ae
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
2 changed files with 21 additions and 0 deletions

20
dbtestcall.py Normal file
View File

@ -0,0 +1,20 @@
import math
import pg8000.native
def Main():
# con = pg8000.native.Connection('postgres', password='postgres', host='localhost', port=5432, database='da11copy')
con = pg8000.native.Connection('query_user', password='Udoz4nahbeethohb', host='localhost', port=5432, database='da11copy')
result = con.run(
"""
SELECT
signature, RTRIM(NULLIF(errors, '')) as errors,
is_executed, is_confirmed,
cu_requested, prioritization_fees
FROM banking_stage_results.transaction_infos
""")
for row in result:
print(row)
if __name__=="__main__":
Main()

View File

@ -5,4 +5,5 @@ gunicorn==20.1.0
itsdangerous==2.1.2
Jinja2==3.1.2
MarkupSafe==2.1.2
pg8000==1.30.2
Werkzeug==2.3.3