import sqlite3 db = sqlite3.connect('/home/hmo/web-dashboard/data/mofin.db') sql = db.execute("SELECT sql FROM sqlite_master WHERE name='holding_strategies'").fetchone() print(sql[0][:600] if sql else "NOT FOUND") db.close()