Skip to content

Commit

Permalink
Merge pull request #257 from godatadriven/add-snapshot
Browse files Browse the repository at this point in the history
Adding snapshot
  • Loading branch information
pgoslatara authored Sep 25, 2024
2 parents b4c8bda + 236d3f5 commit 9033f56
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 37,475 deletions.
16 changes: 16 additions & 0 deletions dbt_project/snapshots/orders_snapshot.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% snapshot orders_snapshot %}

{{
config(
target_database="dbt",
target_schema="snapshots",
unique_key="id",
strategy="timestamp",
updated_at="order_date",
)
}}

select *
from {{ ref("raw_orders") }}

{% endsnapshot %}
Loading

0 comments on commit 9033f56

Please sign in to comment.