themissingCRAM
commited on
Commit
·
7a8951a
1
Parent(s):
1b0cc5f
debug
Browse files
app.py
CHANGED
|
@@ -49,6 +49,8 @@ def sql_engine_tool(
|
|
| 49 |
output = ""
|
| 50 |
print(engine)
|
| 51 |
with engine.connect() as con:
|
|
|
|
|
|
|
| 52 |
rows = con.execute(text(query))
|
| 53 |
for row in rows:
|
| 54 |
output += "\n" + str(row)
|
|
@@ -95,7 +97,9 @@ def init_db(engine):
|
|
| 95 |
insert_rows_into_table(rows, receipts)
|
| 96 |
with engine.begin() as conn:
|
| 97 |
print("SELECT test", conn.execute(text("SELECT * FROM receipts")).fetchall())
|
|
|
|
| 98 |
print(engine)
|
|
|
|
| 99 |
return engine
|
| 100 |
|
| 101 |
|
|
|
|
| 49 |
output = ""
|
| 50 |
print(engine)
|
| 51 |
with engine.connect() as con:
|
| 52 |
+
print("debug sql_engine_tool")
|
| 53 |
+
print(con.connection)
|
| 54 |
rows = con.execute(text(query))
|
| 55 |
for row in rows:
|
| 56 |
output += "\n" + str(row)
|
|
|
|
| 97 |
insert_rows_into_table(rows, receipts)
|
| 98 |
with engine.begin() as conn:
|
| 99 |
print("SELECT test", conn.execute(text("SELECT * FROM receipts")).fetchall())
|
| 100 |
+
print("init_db debug")
|
| 101 |
print(engine)
|
| 102 |
+
print()
|
| 103 |
return engine
|
| 104 |
|
| 105 |
|