Exemple #1
0
        private void ClearTempStage()
        {
            var stage = new StagingSchema(
                AdminConnectionString,
                StagingSchema.TemporaryStagingSchemaName,
                Timeouts.AdminDatabase,
                _configuration.MaxDegreeOfParallelism,
                _configuration.Pipelines);

            if (stage.AllTablesExist())
            {
                stage.TruncateStagingTables();
            }
            else
            {
                stage.CreateStagingTables();
            }
        }