Migration vers Disnake et ajout des components V2
This commit is contained in:
parent
c8c579eefe
commit
98f7501e07
47 changed files with 1196 additions and 722 deletions
16
backups/scratch/check_db.py
Normal file
16
backups/scratch/check_db.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import sqlite3
|
||||
import os
|
||||
|
||||
db_path = "config.db"
|
||||
if os.path.exists(db_path):
|
||||
conn = sqlite3.connect(db_path)
|
||||
cursor = conn.cursor()
|
||||
cursor.execute("SELECT name FROM sqlite_master WHERE type='table';")
|
||||
tables = cursor.fetchall()
|
||||
print(f"Tables: {tables}")
|
||||
for table in tables:
|
||||
cursor.execute(f"PRAGMA table_info({table[0]});")
|
||||
print(f"Schema for {table[0]}: {cursor.fetchall()}")
|
||||
conn.close()
|
||||
else:
|
||||
print("Database not found.")
|
||||
Loading…
Add table
Add a link
Reference in a new issue