Adds functionality to open execution plans from DB tables and DMVs. (#20377)

* Adds functionality to open execution plans from DB tables and DMVs.

* Code review changes

* Renames method to getProviderFromUri
This commit is contained in:
Lewis Sanchez
2022-08-17 19:24:23 -07:00
committed by GitHub
parent 2a94ce3afb
commit 7de5ee0427
14 changed files with 177 additions and 21 deletions

View File

@@ -1464,6 +1464,11 @@ declare module 'azdata' {
secondComparisonResult: ExecutionGraphComparisonResult;
}
export interface IsExecutionPlanResult {
isExecutionPlan: boolean;
queryExecutionPlanFileExtension: string;
}
export interface ExecutionPlanProvider extends DataProvider {
// execution plan service methods
@@ -1478,6 +1483,11 @@ declare module 'azdata' {
* @param secondPlanFile file that contains the second execution plan.
*/
compareExecutionPlanGraph(firstPlanFile: ExecutionPlanGraphInfo, secondPlanFile: ExecutionPlanGraphInfo): Thenable<ExecutionPlanComparisonResult>;
/**
* Determines if the provided value is an execution plan and returns the appropriate file extension.
* @param value String that needs to be checked.
*/
isExecutionPlan(value: string): Thenable<IsExecutionPlanResult>;
}
export interface TopOperationsDataItem {