Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needs more options #1

Open
jimpriest opened this issue Jan 5, 2020 · 4 comments
Open

Needs more options #1

jimpriest opened this issue Jan 5, 2020 · 4 comments

Comments

@jimpriest
Copy link

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.

@huyphams
Copy link
Contributor

huyphams commented Jan 5, 2020

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.

@jimpriest
Copy link
Author

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
Copy link
Author

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

@jorisatabix
Copy link

jorisatabix commented Mar 23, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants