Skip to content

Commit

Permalink
fix DBT example metadata (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergolfer authored Aug 2, 2023
1 parent f71fb2e commit 9e6b3d8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
8 changes: 5 additions & 3 deletions 10_integrations/dbt/dbt_duckdb.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ---
# cmd: ["modal", "run", "dbt_duckdb.py::run", "--command", "run"]
# cmd: ["modal", "run", "10_integrations/dbt/dbt_duckdb.py::run", "--command", "run"]
# ---
#
# This example contains a minimal but capable cloud data warehouse.
Expand Down Expand Up @@ -81,8 +81,10 @@
# {
# "Action": "s3:*",
# "Effect": "Allow",
# "arn:aws:s3:::modal-example-dbt-duckdb-s3/*",
# "arn:aws:s3:::modal-example-dbt-duckdb-s3"
# "Resource": [
# "arn:aws:s3:::modal-example-dbt-duckdb-s3/*",
# "arn:aws:s3:::modal-example-dbt-duckdb-s3"
# ],
# "Sid": "duckdbs3access"
# }
# ],
Expand Down
40 changes: 19 additions & 21 deletions 10_integrations/dbt/dbt_sqlite.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
# ---
# lambda-test: false
# cmd: ["modal", "run", "10_integrations.dbt.dbt_sqlite::run"]
# ---
#
# This is a simple demonstration of how to run a dbt-core project on Modal
# using the dbt-sqlite adapter.
#
# The underlying DBT data and models are from https://docs.getdbt.com/docs/get-started/getting-started-dbt-core
# To run this example, first run the meltano example in 10_integrations/meltano to load the required data
# into sqlite.
#
# **Run this example:**
#
# ```
# modal run dbt_sqlite.py::stub.run
# ```
#
# **Launch an interactive sqlite3 shell on the output database:**
#
# ```
# modal run dbt_sqlite.py::stub.explore
# ```

"""
This is a simple demonstration of how to run a dbt-core project on Modal
using the dbt-sqlite adapter.
The underlying DBT data and models are from https://docs.getdbt.com/docs/get-started/getting-started-dbt-core
To run this example, first run the meltano example in 10_integrations/meltano to load the required data
into sqlite.
**Run this example:**
```
modal run dbt_sqlite.py::stub.run
```
**Launch an interactive sqlite3 shell on the output database:**
```
modal run dbt_sqlite.py::stub.explore
```
"""

import os
import subprocess
Expand Down

0 comments on commit 9e6b3d8

Please sign in to comment.