sql-formatter icon indicating copy to clipboard operation
sql-formatter copied to clipboard

Needs more options

Open jimpriest opened this issue 5 years ago • 4 comments

See something like http://architectshack.com/PoorMansTSqlFormatter.ashx

dbBeaver has an 'external' formatter option where you can just pass it the command to format and it will pipe over your SQL, run the formatter and send it back.

jimpriest avatar Jan 05 '20 21:01 jimpriest

Hi @jimpriest thank you for the feedback but could you point me out why the plugin is a disadvantage when compared with the external in Dbeaver? We can actually do whatever we want with the JavaScript, even run the command line or put the content over the internet. This plugin has pretty much anything for it. We can easily modify it and install it to TablePlus.

huyphams avatar Jan 05 '20 22:01 huyphams

Maybe I'm missing something but there are no formatting options for either the internal or plugin formatter in TablePlus??

I want options like comma first so I can take:

select foo, bar

and make it

select foo
, bar

See the examples here and how they change the formatting: http://poorsql.com/

jimpriest avatar Jan 08 '20 14:01 jimpriest

What does "Run Custom Script" do in the same plugins menu? Can I run a bash script or something from that? Going to look at your plugin source and see if I can figure out how to maybe customize it

jimpriest avatar Jan 16 '20 22:01 jimpriest

We can actually do whatever we want with the JavaScript, even run the command line or put the content over the internet.

Is there an explanation about how/where to do it?

jorisatabix avatar Mar 23 '20 09:03 jorisatabix