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
Database
tab is selected in the left-side panelIn the same left-side panel, under the
Tables and Views
heading, click oncal-itp-data-infra
which 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
Project
tab is selected in the left-side panel.To examine our
source
tables:In the same left-side panel, find the
Sources
headingFrom 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_warehouse
which will expand.Within that list, select
models
From 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