Skip to content

Commit

Permalink
Merge branch 'release/0.9.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronKelley committed Mar 17, 2016
2 parents 190ae82 + b9b30a7 commit 83699e1
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 20 deletions.
39 changes: 27 additions & 12 deletions ssdumpConsole/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ static void Main(string[] args)
}
else
{
processor.DatabaseName = WhichDatabases(extras)[0];
processor.Tables = WhichTables(extras);
processor.Execute();
}
}
Expand All @@ -83,27 +85,40 @@ static void Main(string[] args)
}

/// <summary>
/// Write scripts to console.
/// Figure out which databases to dump.
/// </summary>
/// <param name="scripts">Collection of scripts to be written</param>
private static void WriteScripts(StringCollection scripts)
/// <param name="extras">Unparsed command-line options</param>
/// <returns>List of databases to dump</returns>
private static List<string> WhichDatabases(List<string> extras)
{
foreach (string script in scripts)
{
Console.WriteLine(script);
}
List<string> databases = new List<string>();

// First extra is database to dump.
databases.Add(extras[0]);

return databases;
}

/// <summary>
/// Write scripts to console.
/// Figure out which tables to dump.
/// </summary>
/// <param name="scripts">Collection of scripts to be written</param>
private static void WriteScripts(IEnumerable<string> scripts)
/// <param name="extras">Unparsed command-line options</param>
/// <returns>List of tables to dump</returns>
private static List<string> WhichTables(List<string> extras)
{
foreach (string script in scripts)
List<string> tables = new List<string>();

// It will be an empty list (meaning all tables) unless...
if (extras.Count > 1)
{
Console.WriteLine(script);
// Everything except first value is a table to dump.
for (int index = 1; index < extras.Count; index++)
{
tables.Add(extras[index]);
}
}

return tables;
}

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions ssdumpConsole/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.1.0")]
[assembly: AssemblyFileVersion("0.9.1.0")]
[assembly: AssemblyVersion("0.9.2.0")]
[assembly: AssemblyFileVersion("0.9.2.0")]
6 changes: 6 additions & 0 deletions ssdumpConsole/ssdumpConsole.csproj.user
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'">
<StartArguments>--host=dmsql --include-users --no-data DMWebService</StartArguments>
</PropertyGroup>
</Project>
4 changes: 2 additions & 2 deletions ssdumpGUI/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.1.0")]
[assembly: AssemblyFileVersion("0.9.1.0")]
[assembly: AssemblyVersion("0.9.2.0")]
[assembly: AssemblyFileVersion("0.9.2.0")]
3 changes: 1 addition & 2 deletions ssdumpLibrary/DumpProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class DumpProcessor
/// <summary>
/// Program version.
/// </summary>
public static readonly string ProgramVersion = "0.9.1";
public static readonly string ProgramVersion = "0.9.2";

public string Host { get; set; }
public string Username { get; set; }
Expand Down Expand Up @@ -62,7 +62,6 @@ public DumpProcessor()
/// </summary>
public void Execute()
{

// Set up server object and connection options.
Server server = new Server(Host);
server.ConnectionContext.ApplicationName = ProgramName + " v" + ProgramVersion;
Expand Down
4 changes: 2 additions & 2 deletions ssdumpLibrary/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.9.1.0")]
[assembly: AssemblyFileVersion("0.9.1.0")]
[assembly: AssemblyVersion("0.9.2.0")]
[assembly: AssemblyFileVersion("0.9.2.0")]

0 comments on commit 83699e1

Please sign in to comment.