Update VS Code MSSQL typings (#18055)

* Update VS Code MSSQL typings

* fix compile
This commit is contained in:
Charles Gagnon
2022-01-12 11:31:01 -08:00
committed by GitHub
parent d00a7796d3
commit 19039c8fc7
2 changed files with 629 additions and 610 deletions

View File

@@ -285,7 +285,8 @@ export class DeployService {
trustServerCertificate: undefined,
typeSystemVersion: undefined,
workstationId: undefined,
profileName: profile.profileName
profileName: profile.profileName,
expiresOn: undefined
};
let connectionUrl = await vscodeMssqlApi.connect(connectionProfile, saveConnectionAndPassword);
return connectionUrl;

View File

@@ -53,6 +53,8 @@ declare module 'vscode-mssql' {
/**
* Attempts to create a new connection for the given connection info. An error is thrown and displayed
* to the user if an error occurs while connecting.
* Warning: setting the saveConnection to true will save a new connection profile each time this is called.
* Make sure to use that parameter only when you want to actually save a new profile.
* @param connectionInfo The connection info
* @param saveConnection Save the connection profile if sets to true
* @returns The URI associated with this connection
@@ -74,6 +76,13 @@ declare module 'vscode-mssql' {
*/
getDatabaseNameFromTreeNode(node: ITreeNodeInfo): string;
/**
* Get the connection string for the provided connection Uri
* @param connectionUri The URI of the connection to get the connection string for.
* @param includePassword to include password with connection string
* @returns connection string
*/
getConnectionString(connectionUri: String, includePassword?: boolean): Promise<string>;
}
/**
@@ -125,6 +134,11 @@ declare module 'vscode-mssql' {
*/
azureAccountToken: string | undefined;
/**
* Access token expiry timestamp
*/
expiresOn: number | undefined;
/**
* Gets or sets a Boolean value that indicates whether SQL Server uses SSL encryption for all data sent between the client and server if
* the server has a certificate installed.
@@ -555,6 +569,10 @@ declare module 'vscode-mssql' {
name: string;
schema: string;
parentName?: string;
parentTypeName?: string;
}
/**