Files
Brancheneinstufung2/devtools/db_utils/list_tables.py
Floke 8d53be15c4 [2ff88f42] Feat: Verticals-Update (Transkript 2) & Dev-Toolbox Establishment
- Aktualisierung der Pains/Gains für Energy, Retail und Tech in der lokalen DB.
- Ergänzung von Secondary Products für Energy & Tech.
- Aufbau eines permanenten Werkzeugkastens unter /app/devtools/ für DB- & Notion-Tasks.
- Verifikation der manuellen Notion-Änderungen mittels neuer Maintenance-Skripte.
2026-02-24 18:52:09 +00:00

14 lines
369 B
Python

import sqlite3
def list_tables():
conn = sqlite3.connect('/app/companies_v3_fixed_2.db')
cursor = conn.cursor()
cursor.execute("SELECT name FROM sqlite_master WHERE type='table';")
tables = cursor.fetchall()
print("Tables in database:")
for table in tables:
print(table[0])
conn.close()
if __name__ == "__main__":
list_tables()