You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fac8930
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/guides/models.md
+4-18Lines changed: 4 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -234,26 +234,12 @@ To delete a model:
234
234
235
235
## Viewing the DAG of a project's models
236
236
237
-
---
238
-
239
-
Before generating a DAG, ensure that you have already installed the graphviz package.
240
-
241
-
To install the package with `pip`, enter the following command:
242
-
243
-
```bash
244
-
pip install graphviz
245
-
```
237
+
A directed acyclic graph (DAG) shows the dependencies between your project's models. Each node represents a model, and arrows point from upstream models to the downstream models that depend on them. SQLMesh can generate an HTML file showing your project's DAG.
246
238
247
-
Alternatively, enter the following commandto install graphviz with `apt-get`:
239
+
To generate the DAG, run the following commandfrom the root of your SQLMesh project:
248
240
249
241
```bash
250
-
sudo apt-get install graphviz
242
+
sqlmesh dag FILE
251
243
```
252
244
253
-
---
254
-
255
-
To view the DAG, enter the following command:
256
-
257
-
`sqlmesh dag FILE`
258
-
259
-
An html file containing your project's DAG will be placed at the root of your project folder. The DAG can then be viewed by opening this file in your browser.
245
+
Replace `FILE` with an output filename, such as `dag.html`. Open the generated HTML file in a browser to view the DAG.
0 commit comments