Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -65,6 +65,7 @@ class SQLPromptModel:
|
|
65 |
cur = self.conn.cursor()
|
66 |
cur.execute(query)
|
67 |
# Get column names
|
|
|
68 |
columns = [header[0] for header in cur.description]
|
69 |
# Get all rows
|
70 |
rows = [row for row in cur.fetchall()]
|
|
|
65 |
cur = self.conn.cursor()
|
66 |
cur.execute(query)
|
67 |
# Get column names
|
68 |
+
print(cur.description)
|
69 |
columns = [header[0] for header in cur.description]
|
70 |
# Get all rows
|
71 |
rows = [row for row in cur.fetchall()]
|