The dbt-snowflake
                  utility is an adapter-specific dbt transformer for running SQL-based transformations on data stored in your warehouse.
This utility plugin is meant to be used in favor of the dbt-snowflake transformer plugin type.
Note that this plugin can only be run as part of an ELT pipeline with the  
                      EDK Based Plugin
                    meltano run command. If you are using meltano elt you should use the transformer plugins. We do recommend migrating to meltano run as the transformer plugin type will be deprecated in a future major Meltano release.
Getting Started
Prerequisites
If you haven't already, follow the initial steps of the Getting Started guide:
Installation and configuration
- 
                      Add the dbt-snowflake utility to your
                      project using
                      
:meltano add - 
                        Configure the dbt-snowflake
                        settings using
                        
:meltano config 
meltano add utility dbt-snowflakemeltano config dbt-snowflake set --interactiveNext steps
- If you're running dbt for the first time in a new environment:
 
# create a starter dbt_project.yml file, a profiles.yml file, and models directory meltano invoke dbt-snowflake:initialize
If you run into any issues, learn how to get help.
Capabilities
This plugin currently has no capabilities defined. If you know the capabilities required by this plugin, please contribute!Settings
Settings for dbt itself can be configured through dbt_project.yml as usual, which can be found at transform/dbt_project.yml in your Meltano project. dbt also has adapter-specific documentation for Snowflake.
      The
      dbt-snowflake settings that are known to Meltano are documented below. To quickly
      find the setting you're looking for, click on any setting name from the list:
    
      You can also list these settings using
      
      with the meltano configlist
      subcommand:
    
meltano config dbt-snowflake list
      You can
      override these settings or specify additional ones
      in your meltano.yml by adding the settings key.
    
Please consider adding any settings you have defined locally to this definition on MeltanoHub by making a pull request to the YAML file that defines the settings for this plugin.
Account (account)
- 
          Environment variable:
          
DBT_SNOWFLAKE_ACCOUNT 
The snowflake account to connect to.
Configure this setting directly using the following Meltano command:
meltano config dbt-snowflake set account [value]Database (database)
- 
          Environment variable:
          
DBT_SNOWFLAKE_DATABASE 
The database to create models in.
Configure this setting directly using the following Meltano command:
meltano config dbt-snowflake set database [value]Password (password)
- 
          Environment variable:
          
DBT_SNOWFLAKE_PASSWORD 
The user password to authenticate with.
Configure this setting directly using the following Meltano command:
meltano config dbt-snowflake set password [value]Profiles Directory (profiles_dir)
- 
          Environment variable:
          
DBT_SNOWFLAKE_PROFILES_DIR - 
          Default Value: 
$MELTANO_PROJECT_ROOT/transform/profiles/snowflake 
Configure this setting directly using the following Meltano command:
meltano config dbt-snowflake set profiles_dir [value]Projects Directory (project_dir)
- 
          Environment variable:
          
DBT_SNOWFLAKE_PROJECT_DIR - 
          Default Value: 
$MELTANO_PROJECT_ROOT/transform 
Configure this setting directly using the following Meltano command:
meltano config dbt-snowflake set project_dir [value]Role (role)
- 
          Environment variable:
          
DBT_SNOWFLAKE_ROLE 
The user role to assume.
Configure this setting directly using the following Meltano command:
meltano config dbt-snowflake set role [value]Schema (schema)
- 
          Environment variable:
          
DBT_SNOWFLAKE_SCHEMA 
The schema to build models into by default.
Configure this setting directly using the following Meltano command:
meltano config dbt-snowflake set schema [value]Skip Pre-invoke (skip_pre_invoke)
- 
          Environment variable:
          
DBT_SNOWFLAKE_SKIP_PRE_INVOKE - 
          Default Value: 
false 
Whether to skip pre-invoke hooks which automatically run dbt clean and deps
Configure this setting directly using the following Meltano command:
meltano config dbt-snowflake set skip_pre_invoke [value]Target Path (target_path)
- 
          Environment variable:
          
DBT_SNOWFLAKE_TARGET_PATH - 
          Default Value: 
$MELTANO_PROJECT_ROOT/.meltano/transformers/dbt/target 
Configure this setting directly using the following Meltano command:
meltano config dbt-snowflake set target_path [value]dbt Profile type (type)
- 
          Environment variable:
          
DBT_SNOWFLAKE_TYPE - 
          Default Value: 
snowflake 
Configure this setting directly using the following Meltano command:
meltano config dbt-snowflake set type [value]User (user)
- 
          Environment variable:
          
DBT_SNOWFLAKE_USER 
The user to connect as.
Configure this setting directly using the following Meltano command:
meltano config dbt-snowflake set user [value]Warehouse (warehouse)
- 
          Environment variable:
          
DBT_SNOWFLAKE_WAREHOUSE 
The compute warehouse to use when building models.
Configure this setting directly using the following Meltano command:
meltano config dbt-snowflake set warehouse [value]Commands
The dbt-snowflake utility supports the following commands that can be used withmeltano invoke
    :build
- 
        Equivalent to:
        
build 
Will run your models, tests, snapshots and seeds in DAG order.
meltano invoke dbt-snowflake:build [args...]clean
- 
        Equivalent to:
        
clean 
Delete all folders in the clean-targets list (usually the dbt_modules and target directories.)
meltano invoke dbt-snowflake:clean [args...]compile
- 
        Equivalent to:
        
compile 
Generates executable SQL from source model, test, and analysis files. Compiled SQL files are written to the target/ directory.
meltano invoke dbt-snowflake:compile [args...]debug
- 
        Equivalent to:
        
debug 
Debug your DBT project and warehouse connection.
meltano invoke dbt-snowflake:debug [args...]deps
- 
        Equivalent to:
        
deps 
Pull the most recent version of the dependencies listed in packages.yml
meltano invoke dbt-snowflake:deps [args...]describe
- 
        Equivalent to:
        
describe 
Describe the
meltano invoke dbt-snowflake:describe [args...]docs-generate
- 
        Equivalent to:
        
docs generate 
Generate documentation for your project.
meltano invoke dbt-snowflake:docs-generate [args...]docs-serve
- 
        Equivalent to:
        
docs serve 
Serve documentation for your project. Make sure you ran `docs-generate` first.
meltano invoke dbt-snowflake:docs-serve [args...]freshness
- 
        Equivalent to:
        
source freshness 
Check the freshness of your source data.
meltano invoke dbt-snowflake:freshness [args...]initialize
- 
        Equivalent to:
        
initialize 
Initialize a new dbt project. This will create a dbt_project.yml file, a profiles.yml file, and models directory.
meltano invoke dbt-snowflake:initialize [args...]run
- 
        Equivalent to:
        
run 
Compile SQL and execute against the current target database.
meltano invoke dbt-snowflake:run [args...]seed
- 
        Equivalent to:
        
seed 
Load data from csv files into your data warehouse.
meltano invoke dbt-snowflake:seed [args...]snapshot
- 
        Equivalent to:
        
snapshot 
Execute snapshots defined in your project.
meltano invoke dbt-snowflake:snapshot [args...]test
- 
        Equivalent to:
        
test 
Runs tests on data in deployed models.
meltano invoke dbt-snowflake:test [args...]Something missing?
This page is generated from a YAML file that you can contribute changes to.
Edit it on GitHub!Looking for help?
#plugins-general
    channel.
  

