Skip to content

Instantly share code, notes, and snippets.

@tuanchris
Last active October 9, 2020 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuanchris/89f1564679bbce05c8308915fcb5832a to your computer and use it in GitHub Desktop.
Save tuanchris/89f1564679bbce05c8308915fcb5832a to your computer and use it in GitHub Desktop.
# Name your project! Project names should contain only lowercase characters
# and underscores. A good package name should reflect your organization's
# name or the intended use of these models
name: 'dbt_data_model'
version: '1.0.0'
config-version: 2
# This setting configures which "profile" dbt uses for this project.
profile: 'dbt_data_model'
# These configurations specify where dbt should look for different types of files.
# The `source-paths` config, for example, states that models in this project can be
# found in the "models/" directory. You probably won't need to change these!
source-paths: ["models"]
analysis-paths: ["analysis"]
test-paths: ["tests"]
data-paths: ["data"]
macro-paths: ["macros"]
snapshot-paths: ["snapshots"]
target-path: "target" # directory which will store compiled SQL files
clean-targets: # directories to be removed by `dbt clean`
- "target"
- "dbt_modules"
seeds:
database: cloud-iac-data-warehouse # your google cloud project_id
schema: POS # the dataset where you want your seeds data to be in
# Configuring models
# Full documentation: https://docs.getdbt.com/docs/configuring-models
# In this example config, we tell dbt to build all models in the example/ directory
# as tables. These settings can be overridden in the individual model files
# using the `{{ config(...) }}` macro.
models:
dbt_data_model:
# Applies to all files under models/example/
example:
materialized: view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment