Exemplo n.º 1
0
 public virtual void Run(TextReader reader)
 {
     if (UseSpecificSplitter)
     {
         var splitter = m_dialect.CreateQuerySplitter();
         foreach (var item in splitter.Run(reader))
         {
             ShowProgress();
             try
             {
                 ExecuteDumpQuery(item.Data);
                 OkInc();
             }
             catch (Exception err)
             {
                 ReportFail(item.Data, err);
             }
         }
     }
     else
     {
         foreach (string sql in QueryTools.GoSplit(reader))
         {
             ShowProgress();
             try
             {
                 ExecuteDumpQuery(sql);
                 OkInc();
             }
             catch (Exception err)
             {
                 ReportFail(sql, err);
             }
         }
     }
     ReportFinish();
 }
Exemplo n.º 2
0
 public virtual IQuerySplitter CreateQuerySplitter()
 {
     return(m_dialect.CreateQuerySplitter());
 }