mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 17:23:02 -05:00
Separate connect and listdatabases call for publish (#16391)
* Separate connect and listdatabases call for publish * add return value
This commit is contained in:
@@ -26,6 +26,11 @@ declare module 'vscode-mssql' {
|
||||
*/
|
||||
readonly dacFx: IDacFxService;
|
||||
|
||||
/**
|
||||
* Service for accessing SchemaCompare functionality
|
||||
*/
|
||||
readonly schemaCompare: ISchemaCompareService;
|
||||
|
||||
/**
|
||||
* Prompts the user to select an existing connection or create a new one, and then returns the result
|
||||
* @param ignoreFocusOut Whether the quickpick prompt ignores focus out (default false)
|
||||
@@ -33,11 +38,19 @@ declare module 'vscode-mssql' {
|
||||
promptForConnection(ignoreFocusOut?: boolean): Promise<IConnectionInfo | undefined>;
|
||||
|
||||
/**
|
||||
* Lists the databases for a given connection. An error is thrown and displayed to the user if an
|
||||
* error occurs while connecting
|
||||
* @param connection The connection to list the databases for
|
||||
* 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.
|
||||
* @param connectionInfo The connection info
|
||||
* @returns The URI associated with this connection
|
||||
*/
|
||||
listDatabases(connection: IConnectionInfo): Promise<string[]>;
|
||||
connect(connectionInfo: IConnectionInfo): Promise<string>;
|
||||
|
||||
/**
|
||||
* Lists the databases for a given connection. Must be given an already-opened connection to succeed.
|
||||
* @param connectionUri The URI of the connection to list the databases for.
|
||||
* @returns The list of database names
|
||||
*/
|
||||
listDatabases(connectionUri: string): Promise<string[]>;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -212,6 +225,10 @@ declare module 'vscode-mssql' {
|
||||
schemaObjectType = 5
|
||||
}
|
||||
|
||||
export interface ISchemaCompareService {
|
||||
schemaCompareGetDefaultOptions(): Thenable<SchemaCompareOptionsResult>;
|
||||
}
|
||||
|
||||
export interface IDacFxService {
|
||||
exportBacpac(databaseName: string, packageFilePath: string, ownerUri: string, taskExecutionMode: TaskExecutionMode): Thenable<DacFxResult>;
|
||||
importBacpac(packageFilePath: string, databaseName: string, ownerUri: string, taskExecutionMode: TaskExecutionMode): Thenable<DacFxResult>;
|
||||
@@ -467,4 +484,10 @@ declare module 'vscode-mssql' {
|
||||
createStreamingJobTsql: string;
|
||||
}
|
||||
|
||||
export interface SchemaCompareGetOptionsParams { }
|
||||
|
||||
export interface SchemaCompareOptionsResult extends ResultStatus {
|
||||
defaultDeploymentOptions: DeploymentOptions;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user