loki
in Blog

Introduction
Loki is a tool to rapidly transform your BQ queries to DBT models and vice versa.
Use the loki CLI as part of your daily workflow to:
- Convert a query written in
BQto a format suitable forDBTmodels - Convert
DBTmodels back toBQto facilitate troubleshooting in the BQ UI
Overview
Get general help on commands
loki --helpTransform a file
loki -f sql_file.sql --to-bqThe CLI tool features additional handy functions, such as syntax capitalisation, when converting between dialects
Notes
Loki is a lightweight wrapper that only requires python >= 3.8.1 and click >= 8.1 to run.
More information about this project available on request.