import model from client_controller import _my_tabulate model.connect() model.cursor.execute(''' EXPLAIN QUERY PLAN DELETE FROM orders WHERE expiry_dt < DATETIME('now') '''.replace('?','1')) # model.cursor.execute(''' # SELECT 2 # UNION ALL # SELECT * FROM ( # WITH RECURSIVE ones(x) AS (VALUES(1) UNION ALL SELECT * FROM ones) # SELECT x FROM ones) # LIMIT 1 # '''.replace('?','1')) print(_my_tabulate(model.cursor.fetchall(),tablefmt='pipe'))