sql-dag-flow 0.4.9__tar.gz → 0.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sql_dag_flow-0.4.9/src/sql_dag_flow.egg-info → sql_dag_flow-0.5.0}/PKG-INFO +1 -1
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/pyproject.toml +1 -1
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/main.py +16 -6
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0/src/sql_dag_flow.egg-info}/PKG-INFO +1 -1
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/LICENSE +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/MANIFEST.in +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/README.md +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/setup.cfg +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/__init__.py +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/parser.py +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/static/assets/index-BM6GPh_j.css +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/static/assets/index-ZylJfG6u.js +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/static/index.html +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/static/vite.svg +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/test_api_endpoints.py +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/test_parser.py +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow/verify_counts.py +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow.egg-info/SOURCES.txt +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow.egg-info/dependency_links.txt +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow.egg-info/entry_points.txt +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow.egg-info/requires.txt +0 -0
- {sql_dag_flow-0.4.9 → sql_dag_flow-0.5.0}/src/sql_dag_flow.egg-info/top_level.txt +0 -0
|
@@ -43,9 +43,14 @@ def get_graph(dialect: str = "bigquery", discovery: bool = False, expanded_nodes
|
|
|
43
43
|
return {"nodes": [], "edges": [], "cycles": [], "error": "Directory not found"}
|
|
44
44
|
|
|
45
45
|
exp_nodes_list = [n.strip() for n in expanded_nodes.split(",")] if expanded_nodes else []
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
try:
|
|
47
|
+
tables = parse_sql_files(CURRENT_DIRECTORY, dialect=dialect)
|
|
48
|
+
nodes, edges, cycles = build_graph(tables, discovery_mode=discovery, expanded_nodes=exp_nodes_list)
|
|
49
|
+
return {"nodes": nodes, "edges": edges, "cycles": cycles}
|
|
50
|
+
except Exception as e:
|
|
51
|
+
import traceback
|
|
52
|
+
traceback.print_exc()
|
|
53
|
+
return {"nodes": [], "edges": [], "error": f"Backend Error: {str(e)}"}
|
|
49
54
|
|
|
50
55
|
@app.post("/config/path")
|
|
51
56
|
def set_path(path_data: dict = Body(...)):
|
|
@@ -99,9 +104,14 @@ def get_filtered_graph(data: dict = Body(...)):
|
|
|
99
104
|
discovery = data.get("discovery", False)
|
|
100
105
|
expanded_nodes = data.get("expanded_nodes", [])
|
|
101
106
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
107
|
+
try:
|
|
108
|
+
tables = parse_sql_files(CURRENT_DIRECTORY, allowed_subfolders=subfolders, dialect=dialect)
|
|
109
|
+
nodes, edges, cycles = build_graph(tables, discovery_mode=discovery, expanded_nodes=expanded_nodes)
|
|
110
|
+
return {"nodes": nodes, "edges": edges, "cycles": cycles}
|
|
111
|
+
except Exception as e:
|
|
112
|
+
import traceback
|
|
113
|
+
traceback.print_exc()
|
|
114
|
+
return {"nodes": [], "edges": [], "error": f"Backend Error: {str(e)}"}
|
|
105
115
|
|
|
106
116
|
@app.get("/config/path")
|
|
107
117
|
def get_path():
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|