mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-22 09:35:37 -05:00
More layering and compile strictness (#8973)
* add more folders to strictire compile, add more strict compile options * update ci * wip * add more layering and fix issues * add more strictness * remove unnecessary assertion * add missing checks * fix indentation * remove jsdoc
This commit is contained in:
@@ -0,0 +1,116 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import { IQueryModelService, IQueryEvent } from 'sql/workbench/services/query/common/queryModel';
|
||||
import QueryRunner from 'sql/workbench/services/query/common/queryRunner';
|
||||
import * as azdata from 'azdata';
|
||||
import { QueryEditorInput } from 'sql/workbench/contrib/query/common/queryEditorInput';
|
||||
import { Event } from 'vs/base/common/event';
|
||||
import { QueryInfo } from 'sql/workbench/services/query/common/queryModelService';
|
||||
import { DataService } from 'sql/workbench/contrib/grid/common/dataService';
|
||||
|
||||
export class TestQueryModelService implements IQueryModelService {
|
||||
_serviceBrand: any;
|
||||
onRunQueryUpdate: Event<string>;
|
||||
getQueryRunner(uri: string): QueryRunner {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
getConfig(): Promise<{ [key: string]: any; }> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
getShortcuts(): Promise<any> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
getQueryRows(uri: string, rowStart: number, numberOfRows: number, batchId: number, resultId: number): Promise<azdata.ResultSetSubset> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
runQuery(uri: string, selection: azdata.ISelectionData, queryInput: QueryEditorInput, runOptions?: azdata.ExecutionPlanOptions): void {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
runQueryStatement(uri: string, selection: azdata.ISelectionData, queryInput: QueryEditorInput): void {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
runQueryString(uri: string, selection: string, queryInput: QueryEditorInput) {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
cancelQuery(input: string | QueryRunner): void {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
disposeQuery(uri: string): void {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
isRunningQuery(uri: string): boolean {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
getDataService(uri: string): DataService {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
refreshResultsets(uri: string): void {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
sendGridContentEvent(uri: string, eventName: string): void {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
resizeResultsets(uri: string): void {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
onLoaded(uri: string): void {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
copyResults(uri: string, selection: Slick.Range[], batchId: number, resultId: number, includeHeaders?: boolean): void {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
showWarning(uri: string, message: string): void {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
showError(uri: string, message: string): void {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
showCommitError(error: string): void {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
get onRunQueryStart(): Event<string> {
|
||||
return Event.None;
|
||||
}
|
||||
|
||||
get onRunQueryComplete(): Event<string> {
|
||||
return Event.None;
|
||||
}
|
||||
|
||||
get onQueryEvent(): Event<IQueryEvent> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
initializeEdit(ownerUri: string, schemaName: string, objectName: string, objectType: string, rowLimit: number, queryString: string): void {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
disposeEdit(ownerUri: string): Promise<void> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
updateCell(ownerUri: string, rowId: number, columnId: number, newValue: string): Promise<azdata.EditUpdateCellResult> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
commitEdit(ownerUri: any): Promise<void> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
createRow(ownerUri: string): Promise<azdata.EditCreateRowResult> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
deleteRow(ownerUri: string, rowId: number): Promise<void> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
revertCell(ownerUri: string, rowId: number, columnId: number): Promise<azdata.EditRevertCellResult> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
revertRow(ownerUri: string, rowId: number): Promise<void> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
getEditRows(ownerUri: string, rowStart: number, numberOfRows: number): Promise<azdata.EditSubsetResult> {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
_getQueryInfo(uri: string): QueryInfo {
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
onEditSessionReady: Event<azdata.EditSessionReadyParams>;
|
||||
}
|
||||
Reference in New Issue
Block a user