From e627e778d21449a8dd42cd6a35b832f22d1222dc Mon Sep 17 00:00:00 2001 From: a <4184070+MrCurtis@users.noreply.github.com> Date: Tue, 30 Jan 2024 17:49:33 +0000 Subject: [PATCH] Run demo db on call --- src/fk_graph/cli.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/fk_graph/cli.py b/src/fk_graph/cli.py index 4b0b037..365d5f7 100644 --- a/src/fk_graph/cli.py +++ b/src/fk_graph/cli.py @@ -1,2 +1,10 @@ +from sqlalchemy import create_engine + +from fk_graph import setup_data, get_graph +from fk_graph.plotly_functions import run_app + def main(): - print("Here are some words") + engine = create_engine("sqlite+pysqlite:///:memory:") + setup_data(engine) + graph = get_graph(engine, "table_a", 1) + run_app(graph)