Skip to content

Commit fac8930

Browse files
doc(guides-models): remove unneeded graphviz dependency, extend DAG description
Signed-off-by: Sergiy Kolesnikov <6048022+SergiyKolesnikov@users.noreply.github.com>
1 parent 7ff1d51 commit fac8930

1 file changed

Lines changed: 4 additions & 18 deletions

File tree

‎docs/guides/models.md‎

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -234,26 +234,12 @@ To delete a model:
234234
235235
## Viewing the DAG of a project's models
236236
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.
246238
247-
Alternatively, enter the following command to install graphviz with `apt-get`:
239+
To generate the DAG, run the following command from the root of your SQLMesh project:
248240
249241
```bash
250-
sudo apt-get install graphviz
242+
sqlmesh dag FILE
251243
```
252244
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

Comments
 (0)