Skip to content

A proof of concept for how to set up a codebase for an analytics org.

Notifications You must be signed in to change notification settings

NaimKabir/jinja-sql-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jinja-sql-demo

A small proof of concept for how to set up a Jinja-powered codebase for an analytics org.

Designed to be paired with this thesis article on Medium.

Structure

Files in the macros directory are templates for SQL queries.

Files in the models directory are callers of those SQL templates, and can be rendered into actual SQL.

Dependencies

This should work with Python3 on Mac/Linux machines.

You can install requirements with:

pip install -r requirements.txt

Usage

To render a model, you can run:

./render.py models/{model_name}.sql

About

A proof of concept for how to set up a codebase for an analytics org.

Resources

Stars

Watchers

Forks

Releases

No releases published