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
BQ
to a format suitable forDBT
models - Convert
DBT
models back toBQ
to facilitate troubleshooting in the BQ UI
Overview
Get general help on commands
loki --help
Transform a file
loki -f sql_file.sql --to-bq
The 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.