Navigating the dbt Docs#
dbt is the tool that we use to create data transformations in our warehouse, and it is also the tool that generates our dataset and table documentation.
Visit this link to view the dbt Cal-ITP warehouse documentation.
How to use the documentation#
In the dbt Cal-ITP warehouse documentation, you can navigate from either the Database perspective (table-level) or the Project perspective (as the files are configured in the repository).
The Database Perspective#
This allows you to view the dbt project as it exists in the warehouse.
To examine the documentation from the Database perspective:
Once at the dbt docs homepage, make sure that the
Databasetab is selected in the left-side panelIn the same left-side panel, under the
Tables and Viewsheading, click oncal-itp-data-infrawhich will expandWithin that list, select the dataset schema of your choice
From here, a dropdown list of tables will appear and you can select a table to view its documentation
The Project Perspective#
This allows you to view the warehouse project as it exists as files in the repository.
To examine the documentation for our tables from the Project perspective:
Once at the dbt docs homepage, make sure that the
Projecttab is selected in the left-side panel.To examine our
sourcetables:In the same left-side panel, find the
SourcesheadingFrom here, select the source that you would like to view
A dropdown list of tables will appear and you can select a table to view its documentation
To examine all of our other tables:
In the same left-side panel, under the
Projects, heading click oncalitp_warehousewhich will expand.Within that list, select
modelsFrom here, file directories will appear below.
Select the directory of your choice. A dropdown list of tables will appear and you can select a table to view its documentation