Skip to content

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

Open
ChrisWiitamaki wants to merge 5 commits into
TaoK:masterfrom
ChrisWiitamaki:master
Open

Modified library and console application: Added ability to add or re…#239
ChrisWiitamaki wants to merge 5 commits into
TaoK:masterfrom
ChrisWiitamaki:master

Conversation

@ChrisWiitamaki
Copy link
Copy Markdown

…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
Copy Markdown

@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.

Comment thread PoorMansTSqlFormatterCmdLine/GeneralLanguageContent.fr.resx Outdated
Comment thread PoorMansTSqlFormatterCmdLine/GeneralLanguageContent.fr.resx Outdated
</data>
<data name="InvalidBracketsAroundNamesCombination" xml:space="preserve">
<value>InvalidBracketsAroundNamesCombination!</value>
</data>
Copy link
Copy Markdown

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
Copy Markdown
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.

ChrisWiitamaki and others added 3 commits January 7, 2020 13:59
Co-Authored-By: AeroXuk <AeroXuk@users.noreply.github.com>
Co-Authored-By: AeroXuk <AeroXuk@users.noreply.github.com>
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