public TSqlObfuscatingFormatterTests() { _tokenizer = new TSqlStandardTokenizer(); _parser = new TSqlStandardParser(); _standardFormatter = new TSqlStandardFormatter("\t", 4, 999, true, true, false, true, true, true, false, true, false, true); _obfuscatingFormatter = new TSqlObfuscatingFormatter(); }
public TSqlStandardFormatterTests() { _tokenizer = new TSqlStandardTokenizer(); _parser = new TSqlStandardParser(); _treeFormatter = new TSqlStandardFormatter(); _treeFormatter.HTMLColoring = false; }
public string FormatSql(SqlTiming timing) { var sqlFormatter = new SqlServerFormatter(); var sqlFormat = sqlFormatter.FormatSql(timing); var poorMansFormatter = new TSqlStandardFormatter(); var fullFormatter = new SqlFormattingManager(poorMansFormatter); return fullFormatter.Format(sqlFormat); }
public TSqlObfuscatingFormatterTests() { _tokenizer = new TSqlStandardTokenizer(); _parser = new TSqlStandardParser(); _standardFormatter = new TSqlStandardFormatter(new TSqlStandardFormatterOptions { TrailingCommas = true, KeywordStandardization = true }); _obfuscatingFormatter = new TSqlObfuscatingFormatter(); }
private TSqlStandardFormatter GetFormatter(string configString) { TSqlStandardFormatter outFormatter; if (!_formatters.TryGetValue(configString, out outFormatter)) { //defaults are as per the object, except disabling colorized/htmlified output var options = new TSqlStandardFormatterOptions(configString); options.HTMLColoring = false; outFormatter = new TSqlStandardFormatter(options); } return outFormatter; }
private void FormatSql(DataTable dt, string columnName) { var formatter = new PoorMansTSqlFormatterLib.Formatters.TSqlStandardFormatter(_formatterOptions); //formatter. }