예제 #1
0
        /// <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);
        }
예제 #2
0
        public void ImpliciteIntegratedSecurityTest2()
        {
            CmdArgs args = new CmdArgs();

            CSqlOptions resultingOptions = args.CreateCsqlOptions();

            Assert.IsTrue(resultingOptions.ConnectionParameter.IntegratedSecurity);
        }
예제 #3
0
        /// <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);
            }
        }
예제 #4
0
 /// <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);
 }
예제 #5
0
파일: Processor.cs 프로젝트: radtek/csql
 /// <summary>
 /// Default constructor
 /// </summary>
 public Processor(CSqlOptions csqlOptions)
 {
     this.m_options   = csqlOptions;
     this.m_processor = BatchProcessorFactory.CreateProcessor(csqlOptions);
     this.m_ppTraces  = new PreProcessorTraceQueue();
 }
예제 #6
0
파일: PreProcessor.cs 프로젝트: radtek/csql
 /// <summary>
 /// Construtor with processor options.
 /// </summary>
 public PreProcessor(CSqlOptions options)
 {
     this.m_options = options;
 }