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

Modified library and console application: Added ability to add or re… #239

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ChrisWiitamaki
Copy link

…move brackets around names (schemas, tables, columns, aliases, etc.)

Example: -ab | -addBracketsAroundNames

echo select abc from def where ghi = 1 | SqlFormatter -ab
SELECT [abc]
FROM [def]
WHERE [ghi] = 1

Example: -rb | -removeBracketsAroundNames

echo select [abc] from [def] where [ghi] = 1 | SqlFormatter -rb
SELECT abc
FROM def
WHERE ghi = 1

Chris Wiitamaki added 2 commits August 28, 2019 16:32
Copy link

@AeroXuk AeroXuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some suggested changes to keep the Command Line reformatter help text correct.

@@ -120,6 +120,9 @@
<data name="UnrecognizedArgumentsErrorMessage" xml:space="preserve">
<value>Hemos encontrado argumentos no reconocidos!</value>
</data>
<data name="InvalidBracketsAroundNamesCombination" xml:space="preserve">
<value>InvalidBracketsAroundNamesCombination!</value>
</data>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to also add after Line 186:

ab  addBracketsAroundNames (predeterminado: falso)
rb  removeBracketsAroundNames (predeterminado: falso)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Made requested pull request changes.

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

Successfully merging this pull request may close these issues.

3 participants