Inheritance: Interfaces.ISqlTreeFormatter
 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();
 }
コード例 #2
0
 public TSqlStandardFormatterTests()
 {
     _tokenizer = new TSqlStandardTokenizer();
     _parser = new TSqlStandardParser();
     _treeFormatter = new TSqlStandardFormatter();
     _treeFormatter.HTMLColoring = false;
 }
コード例 #3
0
        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();
 }
コード例 #5
0
 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;
 }
コード例 #6
0
        private void FormatSql(DataTable dt, string columnName)
        {
            var formatter = new PoorMansTSqlFormatterLib.Formatters.TSqlStandardFormatter(_formatterOptions);

            //formatter.
        }
コード例 #7
0
        private void FormatSql(DataTable dt, string columnName)
        {
            var formatter = new PoorMansTSqlFormatterLib.Formatters.TSqlStandardFormatter(_formatterOptions);

            //formatter.
        }