mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-20 17:22:51 -05:00
* Connection URI made to include every option available instead of basic details (#22045) * Revert "Merge remote-tracking branch 'origin' into feat/connectionUri" This reverts commit 11b2d31bf99e216daee823f732254f69a017fee1, reversing changes made to 36e4db8c0744f81565efdfd2f56a3ae3c0026896. * Revert "Revert "Merge remote-tracking branch 'origin' into feat/connectionUri"" This reverts commit f439673c2693e1144c52e04c14e82cd8566c13a6. * Added changes and fixes for feat connectionuri (#22706) * add title generation at start * added await to refreshConnectionTreeTitles
43 lines
1.3 KiB
TypeScript
43 lines
1.3 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import * as azdata from 'azdata';
|
|
|
|
// Used to allow various methods of matching profiles
|
|
export type ProfileMatcher = (a: IConnectionProfile, b: IConnectionProfile) => boolean;
|
|
|
|
export interface IConnectionProfile extends azdata.IConnectionProfile {
|
|
getOptionsKey(getOriginalOptions?: boolean): string;
|
|
matches(profile: azdata.IConnectionProfile): boolean;
|
|
}
|
|
|
|
export interface IConnectionProfileStore {
|
|
options: { [key: string]: any };
|
|
groupId: string;
|
|
providerName: string;
|
|
savePassword: boolean;
|
|
id: string;
|
|
}
|
|
|
|
export enum ServiceOptionType {
|
|
string = 'string',
|
|
multistring = 'multistring',
|
|
password = 'password',
|
|
number = 'number',
|
|
category = 'category',
|
|
boolean = 'boolean',
|
|
object = 'object'
|
|
}
|
|
|
|
export enum ConnectionOptionSpecialType {
|
|
connectionName = 'connectionName',
|
|
serverName = 'serverName',
|
|
databaseName = 'databaseName',
|
|
authType = 'authType',
|
|
userName = 'userName',
|
|
password = 'password',
|
|
appName = 'appName'
|
|
}
|