Skip to content

Commit

Permalink
Run demo db on call
Browse files Browse the repository at this point in the history
  • Loading branch information
MrCurtis committed Jan 30, 2024
1 parent 95f3024 commit e627e77
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/fk_graph/cli.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit e627e77

Please sign in to comment.