Skip to content

Commit

Permalink
tidy up code
Browse files Browse the repository at this point in the history
  • Loading branch information
JFriel committed Nov 3, 2023
1 parent afd28ac commit d1482c6
Showing 1 changed file with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,6 @@ private ProcessStartInfo CreateCommand()
var rscriptFullPath = Path.Combine(RscriptRootDirectory.FullName, "Rscript.exe");

var fullPrintPath = Path.Combine(actualOutputDir, $"{scriptFileName}.Rout");
//var fullLogPath = Path.Combine(actualOutputDir, scriptFileName + ".log");

//var dataInConnection = GetConnectionString(InputDatabase);
//var dataOutConnection = GetConnectionString(_dbInfo);

var command =
$"--vanilla --default-packages={DefaultPackages} \"{FullPathToRScript.FullName.Replace('\\', '/')}\" {InputDatabase.Server} {InputDatabase.Database} {_dbInfo.Server} {_dbInfo.GetRuntimeName()} \"{actualOutputDir.TrimEnd('\\').Replace('\\', '/')}/\" >\"{fullPrintPath.Replace('\\', '/')}\"";
Expand All @@ -176,16 +172,6 @@ private ProcessStartInfo CreateCommand()
return info;
}

private string GetConnectionString(DiscoveredDatabase db)
{
return $"Server={db.Server.Name};Database={db.GetRuntimeName()};IntegratedSecurity=true;DRIVER=SQL Server";
}

private string GetConnectionString(ExternalDatabaseServer db)
{
return $"Server={db.Server};Database={db.Database};IntegratedSecurity=true;DRIVER=SQL Server";
}

private string CreateActualOutputDir(string scriptFileName)
{
var timeStampString = DateTime.Now.ToString("yyyyMMddTHHmmss");
Expand Down

0 comments on commit d1482c6

Please sign in to comment.