You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using HoneySQL, I found myself often having to insert new lines in the SQL statements generated by the format function in order to read them and see if the SQL is what I wanted to obtain.
It would be nice for the user to have a programmatic way to make the generated SQL string readable on multiple lines.
I imagine multiple approaches:
Having the format function take a :pretty true option.
Having a separate pretty-format function just for development purpose.
Having a pretty-sql function that changes a string of SQL into a prettier string of SQL.
The option 2 avoids any performance impact on the format function.
The option 3 additionally avoids any coupling between SQL generation and "pretty formatting".
The text was updated successfully, but these errors were encountered:
While using HoneySQL, I found myself often having to insert new lines in the SQL statements generated by the
format
function in order to read them and see if the SQL is what I wanted to obtain.It would be nice for the user to have a programmatic way to make the generated SQL string readable on multiple lines.
I imagine multiple approaches:
format
function take a:pretty true
option.pretty-format
function just for development purpose.pretty-sql
function that changes a string of SQL into a prettier string of SQL.The option 2 avoids any performance impact on the
format
function.The option 3 additionally avoids any coupling between SQL generation and "pretty formatting".
The text was updated successfully, but these errors were encountered: