mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 09:35:43 -05:00
* Initial commit for GitHub IO pages * Add initial doxfx content * Update manifest.json * Update manifest.json * Set theme jekyll-theme-cayman * Set theme jekyll-theme-slate * Set theme jekyll-theme-minimal * Set theme jekyll-theme-tactile * Clear out theme setting * Remove API docs * Revert "Adding Milliseconds to DateTime fields (#173)" (#197) This reverts commit431dfa4156. * ported new BatchParser * added BatchParser tests * fixing merge conflicts * fix build issues * cleaned code and addressed comments from code review * addressed code review and made BatchParser logic more efficient * fixed batch parser tests * changed class name to fix build issues * fixed merge conflicts * added path for lab mode baseline tests * changed env path for lab mode * added env variable to appveyor * testing env variable for appveyor * fixed lab build * debug appveyor build * testing changes for appveyor * changed trace env path * debugging appveyor build * changed baseline env path * debugging * debugging * debugging * switched on trace flag * debugging * debugging * changed build config * changed baseline files * checking baseline output * changed baseline files * debug baseline tests * debugging baseline * debugging * debugging * debug * debugging * testing baseline format * debug * debug * debug * debug * debug * newline debug * changed baseline file * debug * test * try new way to read * added execution engine tests * change test * testing file encoding * moved execution engine tests to integration * try compare without spaces * removed no op test * added env variable for travis * put batch parser tests to integration too * put batch parser in integration * try new baseline string match * compare baseline test logic changed * changed baseline logic as well as cleaned tests * fix build for travis CI * fix travis CI issues * fixed highlighting bugs on vscode * code review changes * ported new BatchParser * added BatchParser tests * Initial commit for GitHub IO pages * Add initial doxfx content * Update manifest.json * Update manifest.json * Set theme jekyll-theme-cayman * Set theme jekyll-theme-slate * Set theme jekyll-theme-minimal * Set theme jekyll-theme-tactile * Clear out theme setting * Remove API docs * Revert "Adding Milliseconds to DateTime fields (#173)" (#197) This reverts commit431dfa4156. * fixing merge conflicts * fix build issues * cleaned code and addressed comments from code review * addressed code review and made BatchParser logic more efficient * fixed batch parser tests * changed class name to fix build issues * fixed merge conflicts * added path for lab mode baseline tests changed env path for lab mode added env variable to appveyor testing env variable for appveyor fixed lab build debug appveyor build testing changes for appveyor changed trace env path debugging appveyor build changed baseline env path debugging debugging debugging switched on trace flag debugging debugging changed build config changed baseline files checking baseline output changed baseline files debug baseline tests debugging baseline debugging debugging debug debugging testing baseline format debug debug debug debug debug newline debug changed baseline file debug test try new way to read added execution engine tests change test testing file encoding moved execution engine tests to integration try compare without spaces removed no op test added env variable for travis * put batch parser tests to integration too * put batch parser in integration try new baseline string match * compare baseline test logic changed * changed baseline logic as well as cleaned tests * fix build for travis CI * fix travis CI issues * fixed highlighting bugs on vscode * code review changes * fixed filestream writer test * added localization string * added localization string * generated new string files again * code review changes
53 lines
1.8 KiB
C#
53 lines
1.8 KiB
C#
//
|
|
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
//
|
|
|
|
using System;
|
|
using System.Data.SqlClient;
|
|
using System.Diagnostics;
|
|
using Microsoft.SqlTools.ServiceLayer.BatchParser.ExecutionEngineCode;
|
|
|
|
namespace Microsoft.SqlTools.ServiceLayer.IntegrationTests.BatchParser
|
|
{
|
|
internal class BatchParserMockEventHandler : IBatchEventsHandler
|
|
{
|
|
public SqlError Error { get; private set; }
|
|
|
|
/// <summary>
|
|
/// fired when there is an error message from the server
|
|
/// </summary>
|
|
public void OnBatchError(object sender, BatchErrorEventArgs args)
|
|
{
|
|
Debug.WriteLine("{0}", args.Message);
|
|
Error = args.Error;
|
|
}
|
|
|
|
/// <summary>
|
|
/// fired when there is a message from the server
|
|
/// </summary>
|
|
public void OnBatchMessage(object sender, BatchMessageEventArgs args)
|
|
{
|
|
Debug.WriteLine("{0}", args.Message);
|
|
}
|
|
|
|
/// <summary>
|
|
/// fired when there is a new result set available. It is guarnteed
|
|
/// to be fired from the same thread that called Execute method
|
|
/// </summary>
|
|
public void OnBatchResultSetProcessing(object sender, BatchResultSetEventArgs args) { }
|
|
|
|
/// <summary>
|
|
/// fired when we've done absolutely all actions for the current result set
|
|
/// </summary>
|
|
public void OnBatchResultSetFinished(object sender, EventArgs args) { }
|
|
|
|
/// <summary>
|
|
/// fired when the batch recieved cancel request BEFORE it
|
|
/// initiates cancel operation. Note that it is fired from a
|
|
/// different thread then the one used to kick off execution
|
|
/// </summary>
|
|
public void OnBatchCancelling(object sender, EventArgs args) { }
|
|
}
|
|
}
|