#sql #jinja #template #compiler #compile #write #generation

app minidt

A lightweight and efficient Jinja compiler for SQL generation

1 unstable release

0.1.0 Mar 25, 2024

#50 in Template engine

Download history 130/week @ 2024-03-24 30/week @ 2024-03-31 2/week @ 2024-04-07

162 downloads per month

MIT license

14KB
256 lines

MiniDT: A Simple Yet Powerful Jinja Compiler for SQL

MiniDT is a lightweight and efficient tool designed to leverage the power of Jinja2(MiniJinja) templates for generating SQL queries. It serves as a versatile alternative to heavier frameworks like dbt, offering flexibility without the need for complex setups or database connections.

Perfect for situations where dbt is too much, and raw SQL falls short.

As simple as:

Getting Started

Installation

To install MiniDT, clone the repository:

git clone git@github.com:xRSquared/minidt.git

Features

  • Streamlined Workflow: Write your SQL code and compile with ease.
  • Flexible Templating: Enjoy the power of Jinja2 templating without the complexity.
  • Lightweight and Fast: With minimal setup requirements and optimized performance, MiniDT keeps your workflow agile

Why MiniDT?

MiniDT acts as a convenient wrapper around Jinja, enhancing it with syntax enhancements and optimized workflows. Whether you're driven by the need for simplicity, restricted by company policies, or simply seeking to supercharge your SQL templating capabilities, MiniDT is your go-to solution.

Jinja + SQL = ❤️

Contribution

Contributions are welcome! Feel free to submit bug reports, feature requests, or pull requests via GitHub.

License

MiniDT is licensed under the MIT License.

Dependencies

~3MB
~58K SLoC