protected async Task <AnalysisResult> AnalyzeTable(string tableForTest) { var testTable = new List <string>() { tableForTest }; var ticSource = new TablesInfoCollector(_config.SourceConnectionString, testTable, _logger); var ticDestination = new TablesInfoCollector(_config.DestinationConnectionString, testTable, _logger); var tiSource = await ticSource.CollectTablesInfoAsync(); var tiDestination = await ticDestination.CollectTablesInfoAsync(); var ta = new TableAnalyzer(_config, _logger); return(ta.Analyze(testTable, tiSource, tiDestination)); }
public IReadOnlyList <TableColumnInfo> AnalyzeTable(IEnumerable <MElement> rows) { return(TableAnalyzer.Analyze(rows, Settings, _writer.FormatProvider)?.AsReadOnly()); }