mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
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:
21
extensions/types/vscode-mssql.d.ts
vendored
21
extensions/types/vscode-mssql.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user