Skip to content

Commit

Permalink
feat: use env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
njogz committed Oct 9, 2023
1 parent e30e651 commit a4125e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions models/root/couchdb.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{% set import_couchdb_data = select_table(source('couchdb','couchdb'), ref('couchdb_test_data')) %}

{{
config(
materialized = 'view',
Expand All @@ -12,4 +10,4 @@
SELECT
doc->>'type' AS type,
*
FROM {{ import_couchdb_data }}
FROM {{ env_var('ROOT_POSTGRES_SCHEMA') }}.{{ env_var('POSTGRES_TABLE') }}

0 comments on commit a4125e7

Please sign in to comment.