Add AuthenticationType enum to typings (#20699)

* Add AuthenticationType enum to typings

* fix

* const

* Add comments

* fix comment

* remove unused
This commit is contained in:
Charles Gagnon
2022-09-30 16:49:36 -07:00
committed by GitHub
parent d6d75d8817
commit 85dc506a3c
49 changed files with 236 additions and 164 deletions

View File

@@ -50,11 +50,6 @@ export const excludeDatabses: string[] = [
'model'
];
export enum AuthenticationType {
Integrated = 'Integrated',
SqlLogin = 'SqlLogin'
}
export interface TableInfo {
databaseName: string;
tableName: string;
@@ -89,14 +84,14 @@ function getSqlDbConnectionProfile(
databaseName: databaseName,
userName: userName,
password: password,
authenticationType: AuthenticationType.SqlLogin,
authenticationType: azdata.connection.AuthenticationType.SqlLogin,
savePassword: false,
saveProfile: false,
options: {
conectionName: '',
server: serverName,
database: databaseName,
authenticationType: AuthenticationType.SqlLogin,
authenticationType: azdata.connection.AuthenticationType.SqlLogin,
user: userName,
password: password,
connectionTimeout: 60,
@@ -125,7 +120,7 @@ function getConnectionProfile(
azureResourceId: azureResourceId,
userName: userName,
password: password,
authenticationType: AuthenticationType.SqlLogin,
authenticationType: azdata.connection.AuthenticationType.SqlLogin,
savePassword: false,
groupFullName: '',
groupId: '',
@@ -134,7 +129,7 @@ function getConnectionProfile(
options: {
conectionName: '',
server: serverName,
authenticationType: AuthenticationType.SqlLogin,
authenticationType: azdata.connection.AuthenticationType.SqlLogin,
user: userName,
password: password,
connectionTimeout: 60,