tconbeer / sqlfmt

sqlfmt formats your dbt SQL files so you don't have to
https://sqlfmt.com
Apache License 2.0
399 stars 16 forks source link

Support Python format/f-string as templater #587

Open quassy opened 5 months ago

quassy commented 5 months ago

As an alternative to jinja it would be nice if sqlfmt supported Python str.format() / f-string as a templater, just like sqlfluff.

So for example to support queries like this:

SELECT
   identifier,
   name,
   address,
   {extra_col}
FROM {user_table}