Skip to content

Instantly share code, notes, and snippets.

View ArtemChikc's full-sized avatar
🧨
живу последние минуты жизни

B1t0ne ArtemChikc

🧨
живу последние минуты жизни
View GitHub Profile
@ArtemChikc
ArtemChikc / db_visual.py
Created December 12, 2025 17:39
Create simple html schema (Entity-Relationship Diagrams) of your sqlite DB
import sqlite3
import os
def generate_html_schema(db_path, output_file=None):
if not output_file:
output_file = os.path.join(os.path.dirname(db_path), "database_schema.html")
conn = sqlite3.connect(db_path)
cur = conn.cursor()