Skip to content

Commit

Permalink
Web service update for obfuscation options
Browse files Browse the repository at this point in the history
  • Loading branch information
TaoK committed Mar 12, 2012
1 parent 789192b commit d48993d
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions PoorMansTSqlFormatterWebDemo/FormatterService.asmx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ public string FormatTSql(string inputString)
true,
false,
false,
false,
false,
false,
false,
false,
false
);
}
Expand All @@ -75,7 +80,12 @@ public string FormatTSqlWithOptions(
bool coloring,
bool keywordStandardization,
bool useParseErrorPlaceholder,
bool obfuscate
bool obfuscate,
bool randomizeColor,
bool randomizeLineLengths,
bool randomizeKeywordCase,
bool preserveComments,
bool enableKeywordSubstitution
)
{
PoorMansTSqlFormatterLib.Interfaces.ISqlTreeFormatter formatter = null;
Expand All @@ -96,7 +106,13 @@ bool obfuscate
keywordStandardization
);
else if (obfuscate)
formatter = new PoorMansTSqlFormatterLib.Formatters.TSqlObfuscatingFormatter();
formatter = new PoorMansTSqlFormatterLib.Formatters.TSqlObfuscatingFormatter(
randomizeKeywordCase,
randomizeColor,
randomizeLineLengths,
preserveComments,
enableKeywordSubstitution
);
else
formatter = new PoorMansTSqlFormatterLib.Formatters.TSqlIdentityFormatter(coloring);

Expand Down

0 comments on commit d48993d

Please sign in to comment.