/// <summary> /// Initializes a new instance of the <see cref="ExecutionProcessor"/> class. /// </summary> /// <param name="cmdArgs">The CMD args.</param> public ExecutionProcessor(CSqlOptions csqlOptions) { this.options = csqlOptions; DbConnectionParameter connectionParameter = csqlOptions.ConnectionParameter; this.connection = DbConnectionFactoryProvider.CreateConnection(connectionParameter); this.connection.InfoMessage += new EventHandler <DbMessageEventArgs>(InfoMessageEventHandler); }
public void ImpliciteIntegratedSecurityTest2() { CmdArgs args = new CmdArgs(); CSqlOptions resultingOptions = args.CreateCsqlOptions(); Assert.IsTrue(resultingOptions.ConnectionParameter.IntegratedSecurity); }
/// <summary> /// Creates the processor for the script. /// </summary> /// <param name="cmdArgs">The command line arguments.</param> /// <returns>The script processor</returns> internal static IBatchProcessor CreateProcessor(CSqlOptions csqlOptions) { //Setting the Global Trace Level GlobalSettings.Verbosity.Level = csqlOptions.Verbosity.Level; if (!String.IsNullOrEmpty(csqlOptions.DistributionFile)) { DistributionProcessor processor = new DistributionProcessor(csqlOptions); return(processor); } else { ExecutionProcessor processor = new ExecutionProcessor(csqlOptions); return(processor); } }
/// <summary> /// Initializes a new instance of the <see cref="DistributionProcessor"/> class. /// </summary> /// <param name="csqlOptions">The script processor parameter.</param> public DistributionProcessor(CSqlOptions options) { this.options = options; string outputFilePath = Path.GetFullPath(options.DistributionFile); }
/// <summary> /// Default constructor /// </summary> public Processor(CSqlOptions csqlOptions) { this.m_options = csqlOptions; this.m_processor = BatchProcessorFactory.CreateProcessor(csqlOptions); this.m_ppTraces = new PreProcessorTraceQueue(); }
/// <summary> /// Construtor with processor options. /// </summary> public PreProcessor(CSqlOptions options) { this.m_options = options; }