Skip to content

Commit

Permalink
style: 🗑️ some cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgasquez committed Jan 18, 2024
1 parent 8edf199 commit 41e94f4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ dmypy.json
dbt_packages/
logs/

# Ignore everything under data except .gitkeep
# Ignore everything under data except datasets/.gitkeep
data/**
!data/.gitkeep
!data/datasets/.gitkeep

/.quarto/
File renamed without changes.
4 changes: 0 additions & 4 deletions datadex/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
db_dir = os.path.dirname(os.path.abspath(__file__)) + "/../data/"


def custom_f():
return 42


def query(sql):
with duckdb.connect(database=f"{db_dir}/local.duckdb") as con:
return con.sql(sql).df()
4 changes: 3 additions & 1 deletion dbt/dbt_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ target-path: target

models:
datadex:
+materialized: table
+materialized: external
+options:
codec: zstd
5 changes: 1 addition & 4 deletions dbt/profiles.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@ default:
type: duckdb
path: "../data/local.duckdb"
threads: 8
extensions:
- httpfs
- parquet
settings:
enable_object_cache: true
enable_http_metadata_cache: true
external_root: "../data/"
external_root: "../data/datasets"
target: dev

config:
Expand Down

0 comments on commit 41e94f4

Please sign in to comment.