Skip to content

Commit

Permalink
Update quickstart.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
maximearmstrong committed Jun 18, 2024
1 parent 72b8f4b commit e25d6fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
13 changes: 2 additions & 11 deletions docs/content/integrations/dbt/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,6 @@ description: Get started swiftly with this simple dbt & Dagster example.

# Quickstart: Run your dbt project with Dagster

<Note>
<strong>Note</strong>: This guide uses the <code>DbtProject</code> class,
which is an experimental feature. Visit the{" "}
<a href="/\_apidocs/libraries/dagster-dbt#dagster_dbt.DbtProject">
dagster-dbt library API reference
</a>{" "}
for more info.
</Note>

---

## Setup your environment
Expand Down Expand Up @@ -63,7 +54,7 @@ my_project = DbtProject(
project_dir=Path(__file__)
.joinpath("..", RELATIVE_PATH_TO_MY_DBT_PROJECT)
.resolve(),
)
).ensure_prepared()


@dbt_assets(manifest=my_project.manifest_path)
Expand Down Expand Up @@ -139,7 +130,7 @@ my_dagster_project
project_dir=Path(__file__)
.joinpath("..", RELATIVE_PATH_TO_MY_DBT_PROJECT)
.resolve(),
)
).ensure_prepared()
```

3. In your `assets.py` file, add the following code. Using the `dbt_assets` decorator allows Dagster to create a definition for how to compute a set of dbt resources, described by a `manifest.json`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
project_dir=Path(__file__)
.joinpath("..", RELATIVE_PATH_TO_MY_DBT_PROJECT)
.resolve(),
)
).ensure_prepared()
# end_dbt_project_example


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
project_dir=Path(__file__)
.joinpath("..", RELATIVE_PATH_TO_MY_DBT_PROJECT)
.resolve(),
)
).ensure_prepared()


@dbt_assets(manifest=my_project.manifest_path)
Expand Down

0 comments on commit e25d6fe

Please sign in to comment.