mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 01:25:38 -05:00
* can compare scmp with databases * show error if can't connect to db * excludes now work * fixes after rebase and other small fixes * Addressing comments * fixes after rebasing * fix excludes not always being remembered correctly * fix switched check * addressing comments
65 lines
2.6 KiB
TypeScript
65 lines
2.6 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import * as azdata from 'azdata';
|
|
|
|
export class SchemaCompareTestService implements azdata.SchemaCompareServicesProvider {
|
|
|
|
testOperationId: string = 'Test Operation Id';
|
|
|
|
schemaComparePublishChanges(operationId: string, targetServerName: string, targetDatabaseName: string, taskExecutionMode: azdata.TaskExecutionMode): Thenable<azdata.ResultStatus> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
|
|
schemaCompareGetDefaultOptions(): Thenable<azdata.SchemaCompareOptionsResult> {
|
|
let result: azdata.SchemaCompareOptionsResult = {
|
|
defaultDeploymentOptions: undefined,
|
|
success: true,
|
|
errorMessage: ''
|
|
};
|
|
|
|
return Promise.resolve(result);
|
|
}
|
|
|
|
schemaCompareIncludeExcludeNode(operationId: string, diffEntry: azdata.DiffEntry, IncludeRequest: boolean, taskExecutionMode: azdata.TaskExecutionMode): Thenable<azdata.ResultStatus> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
|
|
schemaCompareOpenScmp(filePath: string): Thenable<azdata.SchemaCompareOpenScmpResult> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
|
|
|
|
schemaCompareSaveScmp(sourceEndpointInfo: azdata.SchemaCompareEndpointInfo, targetEndpointInfo: azdata.SchemaCompareEndpointInfo, taskExecutionMode: azdata.TaskExecutionMode, deploymentOptions: azdata.DeploymentOptions, scmpFilePath: string, excludedSourceObjects: azdata.SchemaCompareObjectId[], excludedTargetObjects: azdata.SchemaCompareObjectId[]): Thenable<azdata.ResultStatus> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
|
|
schemaCompare(operationId: string, sourceEndpointInfo: azdata.SchemaCompareEndpointInfo, targetEndpointInfo: azdata.SchemaCompareEndpointInfo, taskExecutionMode: azdata.TaskExecutionMode): Thenable<azdata.SchemaCompareResult> {
|
|
let result: azdata.SchemaCompareResult = {
|
|
operationId: this.testOperationId,
|
|
areEqual: true,
|
|
differences: [],
|
|
success: true,
|
|
errorMessage: ''
|
|
};
|
|
|
|
return Promise.resolve(result);
|
|
}
|
|
|
|
schemaCompareGenerateScript(operationId: string, targetServerName: string, targetDatabaseName: string, taskExecutionMode: azdata.TaskExecutionMode): Thenable<azdata.ResultStatus> {
|
|
return undefined;
|
|
}
|
|
|
|
schemaCompareCancel(operationId: string): Thenable<azdata.ResultStatus> {
|
|
return undefined;
|
|
}
|
|
|
|
handle?: number;
|
|
readonly providerId: string = 'MSSQL';
|
|
|
|
registerOnUpdated(handler: () => any): void {
|
|
}
|
|
}
|