Automatically create log tables with dbt.
This example requires Docker and Make.
$ git clone https://github.com/fishtown-analytics/log-tables-example.git
Inside the repo, run:
$ make up
$ make seed
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