Add vscode support for System database package references for SDK-style sql projects (#23383)

* changes for supporting system db package references in vscode

* cleanup

* address comments
This commit is contained in:
Kim Santiago
2023-06-14 13:30:03 -10:00
committed by GitHub
parent b135a06f8a
commit 42a0622d93
3 changed files with 53 additions and 10 deletions

View File

@@ -482,9 +482,10 @@ declare module 'vscode-mssql' {
* @param projectUri Absolute path of the project, including .sqlproj
* @param systemDatabase Type of system database
* @param suppressMissingDependencies Whether to suppress missing dependencies
* @param referenceType Type of reference - ArtifactReference or PackageReference
* @param databaseLiteral Literal name used to reference another database in the same server, if not using SQLCMD variables
*/
addSystemDatabaseReference(projectUri: string, systemDatabase: SystemDatabase, suppressMissingDependencies: boolean, databaseLiteral?: string): Promise<ResultStatus>;
addSystemDatabaseReference(projectUri: string, systemDatabase: SystemDatabase, suppressMissingDependencies: boolean, referenceType: SystemDbReferenceType, databaseLiteral?: string): Promise<ResultStatus>;
/**
* Add a nuget package database reference to a project
@@ -1112,7 +1113,7 @@ declare module 'vscode-mssql' {
packageFilePath: string;
databaseName: string;
upgradeExisting: boolean;
sqlCommandVariableValues?: Map<string, string>;
sqlCommandVariableValues?: Record<string, string>;
deploymentOptions?: DeploymentOptions;
ownerUri: string;
taskExecutionMode: TaskExecutionMode;
@@ -1121,7 +1122,7 @@ declare module 'vscode-mssql' {
export interface GenerateDeployScriptParams {
packageFilePath: string;
databaseName: string;
sqlCommandVariableValues?: Map<string, string>;
sqlCommandVariableValues?: Record<string, string>;
deploymentOptions?: DeploymentOptions;
ownerUri: string;
taskExecutionMode: TaskExecutionMode;
@@ -1153,7 +1154,7 @@ declare module 'vscode-mssql' {
profilePath: string;
databaseName: string;
connectionString: string;
sqlCommandVariableValues?: Map<string, string>;
sqlCommandVariableValues?: Record<string, string>;
deploymentOptions?: DeploymentOptions;
}
@@ -1209,6 +1210,11 @@ declare module 'vscode-mssql' {
* Type of system database
*/
systemDatabase: SystemDatabase;
/**
* Type of reference - ArtifactReference or PackageReference
*/
referenceType: SystemDbReferenceType;
}
export interface AddNugetPackageReferenceParams extends AddUserDatabaseReferenceParams {
@@ -1249,6 +1255,13 @@ declare module 'vscode-mssql' {
path: string;
}
export interface MoveFolderParams extends FolderParams {
/**
* Path of the folder, typically relative to the .sqlproj file
*/
destinationPath: string;
}
export interface CreateSqlProjectParams extends SqlProjectParams {
/**
* Type of SQL Project: SDK-style or Legacy