Skip to content

hsheth2/sample-dbt

 
 

Repository files navigation

sample-dbt

A starter for setting up dbt test cases.

Requirements:

  • Docker
  • dbt
  • Python

Getting started

Unless otherwise specified, run all commands from the repo root.

  1. Set up Postgres and populate the pagila sample database.

    ./setup-postgres.sh
  2. Set up dbt (order matters!):

    # create ~/.dbt directory to copy profiles.yml
    mkdir ~/.dbt
    # copy profiles.yml to ~/.dbt/
    cp profiles.yml ~/.dbt/
  3. Generate files for dbt:

    ./generate.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PLpgSQL 99.9%
  • Other 0.1%