mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Update VS Code MSSQL typings (#18055)
* Update VS Code MSSQL typings * fix compile
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user