akoutmos / sql_fmt

Format and pretty print SQL queries
https://hex.pm/packages/sql_fmt
MIT License
48 stars 2 forks source link

Formatting SQL fragments #5

Open andyleclair opened 1 month ago

andyleclair commented 1 month ago

It would be really nice to be able to format nicely SQL strings used by fragment

Since fragment already takes a string, it seems fairly trivial to replace it with a ~SQL sigil to get nice formatting. I'm not sure if the rust crate allows for this, but it'd be a nice feature!

akoutmos commented 1 month ago

This is definitely something that I can take a look at. No promises though!