Skip to content

Commit

Permalink
removes usage of tabs in code samples that cause visually misaligned …
Browse files Browse the repository at this point in the history
…indentation
  • Loading branch information
cmpadden committed Nov 16, 2023
1 parent 1f15855 commit 555f7e8
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Throughout this module, you’ve used DuckDB to store and transform your data. E
deps=["taxi_trips_file"],
)
def taxi_trips():
...
conn = duckdb.connect(os.getenv("DUCKDB_DATABASE"))
...
...
conn = duckdb.connect(os.getenv("DUCKDB_DATABASE"))
...
```

Every asset that queries DuckDB contains the `duckdb.connect` line. As previously mentioned, this can become brittle and error-prone as your project grows, whether in the number of assets that use it or the complexity of the connections. For example, to MotherDuck, a specific S3 bucket, or loading an extension. To be exact, this brittleness is shared across the following assets:
Expand Down Expand Up @@ -93,10 +93,10 @@ Update `dagster_university/__init__.py` with the following changes:

```python
defs = Definitions(
assets=[*trip_assets, *metric_assets],
resources={
"database": database_resource,
},
assets=[*trip_assets, *metric_assets],
resources={
"database": database_resource,
},
)
```

Expand Down

0 comments on commit 555f7e8

Please sign in to comment.