mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-19 09:35:36 -05:00
Sql Proj Extract from database to Sql files (#949)
* SqlToolsServices changes for Sql Proj Extract from database to Sql files * Bumped DacFx version. Addressed comments.
This commit is contained in:
@@ -30,7 +30,8 @@ namespace Microsoft.SqlTools.ServiceLayer.DacFx
|
||||
public override void Execute()
|
||||
{
|
||||
Version version = ParseVersion(this.Parameters.ApplicationVersion);
|
||||
this.DacServices.Extract(this.Parameters.PackageFilePath, this.Parameters.DatabaseName, this.Parameters.ApplicationName, version, null, null, null, this.CancellationToken);
|
||||
DacExtractOptions extractOptions = GetExtractOptions(this.Parameters.ExtractTarget);
|
||||
this.DacServices.Extract(this.Parameters.PackageFilePath, this.Parameters.DatabaseName, this.Parameters.ApplicationName, version, applicationDescription:null, tables:null, extractOptions:extractOptions, cancellationToken:this.CancellationToken);
|
||||
}
|
||||
|
||||
public static Version ParseVersion(string incomingVersion)
|
||||
@@ -43,5 +44,11 @@ namespace Microsoft.SqlTools.ServiceLayer.DacFx
|
||||
|
||||
return parsedVersion;
|
||||
}
|
||||
|
||||
private DacExtractOptions GetExtractOptions(DacExtractTarget extractTarget)
|
||||
{
|
||||
DacExtractOptions extractOptions = new DacExtractOptions() { ExtractTarget = extractTarget };
|
||||
return extractOptions;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user