mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-03-19 11:31:40 -04:00
Adding bindings for SqlProject service getters (#22046)
* Getters * blank lines * STS bump * Fixing typos * updating contract ID
This commit is contained in:
79
extensions/mssql/src/mssql.d.ts
vendored
79
extensions/mssql/src/mssql.d.ts
vendored
@@ -452,7 +452,7 @@ declare module 'mssql' {
|
||||
* Get the cross-platform compatibility status for a project
|
||||
* @param projectUri Absolute path of the project, including .sqlproj
|
||||
*/
|
||||
getCrossPlatformCompatibility(projectUri: string): Promise<GetCrossPlatformCompatiblityResult>;
|
||||
getCrossPlatformCompatibility(projectUri: string): Promise<GetCrossPlatformCompatibilityResult>;
|
||||
|
||||
/**
|
||||
* Open an existing SQL project
|
||||
@@ -519,15 +519,90 @@ declare module 'mssql' {
|
||||
* @param path Path of the script, including .sql, relative to the .sqlproj
|
||||
*/
|
||||
moveSqlObjectScript(projectUri: string, destinationPath: string, path: string): Promise<azdata.ResultStatus>;
|
||||
|
||||
/**
|
||||
* getDatabaseReferences
|
||||
* @param projectUri Absolute path of the project, including .sqlproj
|
||||
*/
|
||||
getDatabaseReferences(projectUri: string): Promise<GetDatabaseReferencesResult>;
|
||||
|
||||
/**
|
||||
* getFolders
|
||||
* @param projectUri Absolute path of the project, including .sqlproj
|
||||
*/
|
||||
getFolders(projectUri: string): Promise<GetFoldersResult>;
|
||||
|
||||
/**
|
||||
* getPostDeploymentScripts
|
||||
* @param projectUri Absolute path of the project, including .sqlproj
|
||||
*/
|
||||
getPostDeploymentScripts(projectUri: string): Promise<GetScriptsResult>;
|
||||
|
||||
/**
|
||||
* getPreDeploymentScripts
|
||||
* @param projectUri Absolute path of the project, including .sqlproj
|
||||
*/
|
||||
getPreDeploymentScripts(projectUri: string): Promise<GetScriptsResult>;
|
||||
|
||||
/**
|
||||
* getSqlCmdVariables
|
||||
* @param projectUri Absolute path of the project, including .sqlproj
|
||||
*/
|
||||
getSqlCmdVariables(projectUri: string): Promise<GetSqlCmdVariablesResult>;
|
||||
|
||||
/**
|
||||
* getSqlObjectScripts
|
||||
* @param projectUri Absolute path of the project, including .sqlproj
|
||||
*/
|
||||
getSqlObjectScripts(projectUri: string): Promise<GetScriptsResult>;
|
||||
}
|
||||
|
||||
|
||||
//#region Results
|
||||
|
||||
export interface GetCrossPlatformCompatiblityResult extends azdata.ResultStatus {
|
||||
export interface GetDatabaseReferencesResult extends azdata.ResultStatus {
|
||||
/**
|
||||
* Array of system database references contained in the project
|
||||
*/
|
||||
systemDatabaseReferences: SystemDatabaseReference[];
|
||||
/**
|
||||
* Array of dacpac references contained in the project
|
||||
*/
|
||||
dacpacReferences: DacpacReference[];
|
||||
/**
|
||||
* Array of SQL project references contained in the project
|
||||
*/
|
||||
sqlProjectReferences: SqlProjectReference[];
|
||||
}
|
||||
|
||||
export interface GetFoldersResult extends azdata.ResultStatus {
|
||||
/**
|
||||
* Array of folders contained in the project
|
||||
*/
|
||||
folders: string[];
|
||||
}
|
||||
|
||||
export interface GetCrossPlatformCompatibilityResult extends azdata.ResultStatus {
|
||||
/**
|
||||
* Whether the project is cross-platform compatible
|
||||
*/
|
||||
isCrossPlatformCompatible: boolean;
|
||||
}
|
||||
|
||||
export interface GetSqlCmdVariablesResult extends azdata.ResultStatus {
|
||||
/**
|
||||
* Array of SQLCMD variables contained in the project
|
||||
*/
|
||||
sqlCmdVariables: SqlCmdVariable[];
|
||||
}
|
||||
|
||||
export interface GetScriptsResult extends azdata.ResultStatus {
|
||||
/**
|
||||
* Array of scripts contained in the project
|
||||
*/
|
||||
scripts: string[];
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region Types
|
||||
|
||||
Reference in New Issue
Block a user