Skip to content

dbt-labs/log-tables-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

log-tables-example

Read the blog post on Medium

Automatically create log tables with dbt.

Example

Installation

This example requires Docker and Make.

Clone the repo

$ git clone https://github.com/fishtown-analytics/log-tables-example.git

Setup

Inside the repo, run:

$ make up
$ make seed

Usage

You can connect to the installed Docker postgres with:

PGPASS=password psql -Uroot -hlocalhost log_tables

Or run sql with ./scripts/run_sql_cmd

To archive the current state of the users table to the log table, run:

dbt archive

Made with love by Fishtown Analytics

About

Example of log table creation using dbt.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published