Skip to content

Commit 82343f7

Browse files
author
Adriano Sanges
committed
Refactor real-estate-dbt project structure and update configurations
- Rename project from real-estate-sqlmesh to real-estate-dbt for clarity - Update Dockerfile to sync with the new project structure - Remove outdated configuration files and models to streamline the project - Adjust dbt_project.yml to reflect new model naming conventions
1 parent 2ae196c commit 82343f7

File tree

12 files changed

+29
-39
lines changed

12 files changed

+29
-39
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ RUN apt-get update && apt-get install -y \
1414

1515

1616
RUN uv --directory real-estate-etl sync --frozen
17-
RUN uv --directory real-estate-sqlmesh sync --frozen
17+
RUN uv --directory real-estate-dbt sync --frozen
1818

1919
ENTRYPOINT ["bash", "-c"]

real_estate_dbt/.user.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
id: 06c966af-362c-4cdd-8dde-fe0f8f2b9964

real_estate_dbt/config.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

real_estate_dbt/dbt_project.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@ clean-targets: # directories to be removed by `dbt clean`
3232
models:
3333
real_estate_dbt:
3434
# Config indicated by + and applies to all files under models/example/
35-
example:
35+
real_estate:
3636
+materialized: table

real_estate_dbt/models/example/cleaned_properties.sql

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SELECT
2+
*
3+
FROM
4+
{{ source('real_estate', 'properties') }}
5+
WHERE
6+
price < 10000000
File renamed without changes.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
3+
sources:
4+
- name: real_estate
5+
schema: main
6+
tables:
7+
- name: properties
8+
description: "A table of properties"

real_estate_dbt/profile/profiles.yml

Lines changed: 0 additions & 7 deletions
This file was deleted.

real_estate_dbt/profiles.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
real_estate_dbt:
2+
target: dev
3+
outputs:
4+
dev:
5+
type: duckdb
6+
schema: main
7+
path: "md:adriano_warehouse?motherduck_token={{ env_var('motherduck_token') }}"
8+
threads: 4
9+
extensions:
10+
- httpfs

0 commit comments

Comments
 (0)