which formatter does this extension use? #137
-
|
can i use it outside of vscode? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
Hi @Aneeqasif, the extension uses the sqlparse module in Python. I don't believe it has a CLI, but you can use it in a script outside of the extension. See https://sqlparse.readthedocs.io/en/latest/intro.html |
Beta Was this translation helpful? Give feedback.
-
|
@mmcfarland Is it possible to pass options to the formatter from the extension? |
Beta Was this translation helpful? Give feedback.
-
|
I think the formatter isn't working, it doesn't do anything when I format it, and nothing appears in the logs (using |
Beta Was this translation helpful? Give feedback.
Hi @Aneeqasif, the extension uses the sqlparse module in Python. I don't believe it has a CLI, but you can use it in a script outside of the extension. See https://sqlparse.readthedocs.io/en/latest/intro.html