mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 18:46:40 -05:00
Set target platform for db projects from server metadata: mssql vscode extension (#20607)
* Set target platform for mssql vscode extension- create project from db feature * Addressed comments * Address comment to add EngineEdition information in vscode-mssql.d.ts
This commit is contained in:
79
extensions/types/vscode-mssql.d.ts
vendored
79
extensions/types/vscode-mssql.d.ts
vendored
@@ -114,8 +114,32 @@ declare module 'vscode-mssql' {
|
||||
* @returns A promise object for when the request receives a response
|
||||
*/
|
||||
sendRequest<P, R, E, R0>(requestType: RequestType<P, R, E, R0>, params?: P): Promise<R>;
|
||||
|
||||
/**
|
||||
* Get the server info for a connection
|
||||
* @param connectionInfo connection info of the connection
|
||||
*/
|
||||
getServerInfo(connectionInfo: IConnectionInfo): ServerInfo
|
||||
}
|
||||
|
||||
/**
|
||||
* The possible values of the server engine edition
|
||||
* EngineEdition under https://docs.microsoft.com/sql/t-sql/functions/serverproperty-transact-sql is associated with these values
|
||||
*/
|
||||
export const enum DatabaseEngineEdition {
|
||||
Unknown = 0,
|
||||
Personal = 1,
|
||||
Standard = 2,
|
||||
Enterprise = 3,
|
||||
Express = 4,
|
||||
SqlDatabase = 5,
|
||||
SqlDataWarehouse = 6,
|
||||
SqlStretchDatabase = 7,
|
||||
SqlManagedInstance = 8,
|
||||
SqlOnDemand = 11
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Information about a database connection
|
||||
*/
|
||||
@@ -289,6 +313,61 @@ declare module 'vscode-mssql' {
|
||||
connectionString: string | undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
* Information about a SQL Server instance.
|
||||
*/
|
||||
export interface ServerInfo {
|
||||
/**
|
||||
* The major version of the SQL Server instance.
|
||||
*/
|
||||
serverMajorVersion: number;
|
||||
|
||||
/**
|
||||
* The minor version of the SQL Server instance.
|
||||
*/
|
||||
serverMinorVersion: number;
|
||||
|
||||
/**
|
||||
* The build of the SQL Server instance.
|
||||
*/
|
||||
serverReleaseVersion: number;
|
||||
|
||||
/**
|
||||
* The ID of the engine edition of the SQL Server instance.
|
||||
*/
|
||||
engineEditionId: number;
|
||||
|
||||
/**
|
||||
* String containing the full server version text.
|
||||
*/
|
||||
serverVersion: string;
|
||||
|
||||
/**
|
||||
* String describing the product level of the server.
|
||||
*/
|
||||
serverLevel: string;
|
||||
|
||||
/**
|
||||
* The edition of the SQL Server instance.
|
||||
*/
|
||||
serverEdition: string;
|
||||
|
||||
/**
|
||||
* Whether the SQL Server instance is running in the cloud (Azure) or not.
|
||||
*/
|
||||
isCloud: boolean;
|
||||
|
||||
/**
|
||||
* The version of Azure that the SQL Server instance is running on, if applicable.
|
||||
*/
|
||||
azureVersion: number;
|
||||
|
||||
/**
|
||||
* The Operating System version string of the machine running the SQL Server instance.
|
||||
*/
|
||||
osVersion: string;
|
||||
}
|
||||
|
||||
export const enum ExtractTarget {
|
||||
dacpac = 0,
|
||||
file = 1,
|
||||
|
||||
Reference in New Issue
Block a user