Add Azure Resource 'Sql' to MSSQL extension. (#21600)

This commit is contained in:
Cheena Malhotra
2023-01-20 13:08:38 -08:00
committed by GitHub
parent 4971a94244
commit b3acef3124
4 changed files with 55 additions and 1 deletions

View File

@@ -48,16 +48,65 @@ export interface ConnectionStringOptions {
isDefault?: boolean;
}
/**
* The connection provider properties.
*/
export interface ConnectionProviderProperties {
/**
* The connection provider id, e.g. MSSQL, LOGANALYTICS
*/
providerId: string;
/**
* Path to the connection provider's icon
*/
iconPath?: URI | IconPath | { id: string, path: IconPath, default?: boolean }[]
/**
* The display name of the connection provider, e.g. Microsoft SQL Server, Azure Monitor Logs
*/
displayName: string;
/**
* Alias to be used for the kernel in notebooks
*/
notebookKernelAlias?: string;
/**
* Azure resource endpoint to be used by the connection provider.
*
* Accepted values are determined from azdata.AzureResource enum:
* ResourceManagement, Sql, OssRdbms, AzureKeyVault, Graph, MicrosoftResourceManagement,
* AzureDevOps, MsGraph, AzureLogAnalytics, AzureStorage, AzureKusto, PowerBi
*
* Defaults to 'Sql' if not specified.
*/
azureResource?: string;
/**
* List of all connection properties for the connection provider.
*/
connectionOptions: azdata.ConnectionOption[];
/**
* Boolean indicating whether the connection provider supports queries.
* The default value is true.
*/
isQueryProvider?: boolean;
/**
* Boolean indicating whether the connection provider supports execution plan.
*/
isExecutionPlanProvider?: boolean;
/**
* List of file extensions supported by the execution plan provider, if execution plan is supported.
*/
supportedExecutionPlanFileExtensions?: string[];
/**
* Connection string options for the connection provider
*/
connectionStringOptions?: ConnectionStringOptions;
}