Skip to content

Commit

Permalink
Updated namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMpn committed Jul 1, 2024
1 parent 428f8e1 commit 69f2e02
Show file tree
Hide file tree
Showing 33 changed files with 63 additions and 62 deletions.
4 changes: 2 additions & 2 deletions MarkMpn.Sql4Cds.Export/Contracts/DbCellValue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//

using Microsoft.SqlTools.Utility;
using MarkMpn.Sql4Cds.Export.Utility;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts
namespace MarkMpn.Sql4Cds.Export.Contracts
{
/// <summary>
/// Class used for internally passing results from a cell around.
Expand Down
4 changes: 2 additions & 2 deletions MarkMpn.Sql4Cds.Export/Contracts/DbColumnWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
using System.Data.Common;
using System.Data.SqlTypes;
using System.Diagnostics;
using Microsoft.SqlTools.Utility;
using MarkMpn.Sql4Cds.Export.Utility;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts
namespace MarkMpn.Sql4Cds.Export.Contracts
{
/// <summary>
/// Wrapper around a DbColumn, which provides extra functionality, but can be used as a
Expand Down
2 changes: 1 addition & 1 deletion MarkMpn.Sql4Cds.Export/Contracts/SaveResultsRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
//


namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts
namespace MarkMpn.Sql4Cds.Export.Contracts
{
/// <summary>
/// Parameters for the save results request
Expand Down
4 changes: 2 additions & 2 deletions MarkMpn.Sql4Cds.Export/DataStorage/FileStreamReadResult.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
//

using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Represents a value returned from a read from a file stream. This is used to eliminate ref
Expand Down
4 changes: 2 additions & 2 deletions MarkMpn.Sql4Cds.Export/DataStorage/IFileStreamFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
//

using System.Collections.Generic;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Interface for a factory that creates filesystem readers/writers
Expand Down
4 changes: 2 additions & 2 deletions MarkMpn.Sql4Cds.Export/DataStorage/IFileStreamReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@

using System;
using System.Collections.Generic;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Interface for a object that reads from the filesystem
Expand Down
4 changes: 2 additions & 2 deletions MarkMpn.Sql4Cds.Export/DataStorage/IFileStreamWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
using System;
using System.Collections.Generic;
using MarkMpn.Sql4Cds.Engine;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;


namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Interface for a object that writes to a filesystem wrapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;
using Microsoft.SqlTools.ServiceLayer.Utility;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Factory for creating a reader/writer pair that will read from the temporary buffer file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
using System.IO;
using System.Linq;
using System.Text;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Writer for writing rows of results to a CSV file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
using System.Collections.Generic;
using System.IO;
using MarkMpn.Sql4Cds.Engine;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;
using Microsoft.SqlTools.ServiceLayer.Utility;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Factory for creating a reader/writer pair that will read from the temporary buffer file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
using System.Collections.Generic;
using System.IO;
using MarkMpn.Sql4Cds.Engine;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;
using SkiaSharp;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Writer for writing rows of results to a Excel file
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
using System.IO.Compression;
using System.Xml;
using MarkMpn.Sql4Cds.Engine;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
// A xlsx file is a zip with specific folder structure.
// http://www.ecma-international.org/publications/standards/Ecma-376.htm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;
using Microsoft.SqlTools.ServiceLayer.Utility;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
public class SaveAsJsonFileStreamFactory : IFileStreamFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;
using Newtonsoft.Json;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Writer for writing rows of results to a JSON file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
using System.Collections.Generic;
using System.IO;
using MarkMpn.Sql4Cds.Engine;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;
using Microsoft.SqlTools.ServiceLayer.Utility;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
public class SaveAsMarkdownFileStreamFactory : IFileStreamFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
using System.Text.RegularExpressions;
using System.Web;
using MarkMpn.Sql4Cds.Engine;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Writer for exporting results to a Markdown table.
Expand Down
6 changes: 3 additions & 3 deletions MarkMpn.Sql4Cds.Export/DataStorage/SaveAsWriterBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
using System.Collections.Generic;
using System.IO;
using System.Text;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using Microsoft.SqlTools.Utility;
using MarkMpn.Sql4Cds.Export.Contracts;
using MarkMpn.Sql4Cds.Export.Utility;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Abstract class for implementing writers that save results to file. Stores some basic info
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
using System;
using System.Collections.Generic;
using System.IO;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;
using Microsoft.SqlTools.ServiceLayer.Utility;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
public class SaveAsXmlFileStreamFactory : IFileStreamFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
using System.IO;
using System.Text;
using System.Xml;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Writer for writing rows of results to a XML file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

using System.Collections.Generic;
using System.IO;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;
using Microsoft.SqlTools.ServiceLayer.Utility;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Factory that creates file reader/writers that process rows in an internal, non-human readable file format
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
using System.Data.SqlTypes;
using System.IO;
using System.Text;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using Microsoft.SqlTools.Utility;
using MarkMpn.Sql4Cds.Export.Contracts;
using MarkMpn.Sql4Cds.Export.Utility;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Reader for service buffer formatted file streams
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
using System.Diagnostics;
using System.IO;
using System.Text;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;
using Microsoft.SqlTools.ServiceLayer.Utility;
using Microsoft.SqlTools.Utility;
using MarkMpn.Sql4Cds.Export.Utility;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Writer for service buffer formatted file streams
Expand Down
6 changes: 3 additions & 3 deletions MarkMpn.Sql4Cds.Export/DataStorage/StorageDataReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
using System.IO;
using System.Linq;
using System.Xml;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using Microsoft.SqlTools.Utility;
using MarkMpn.Sql4Cds.Export.Contracts;
using MarkMpn.Sql4Cds.Export.Utility;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
namespace MarkMpn.Sql4Cds.Export.DataStorage
{
/// <summary>
/// Wrapper around a DbData reader to perform some special operations more simply
Expand Down
3 changes: 2 additions & 1 deletion MarkMpn.Sql4Cds.Export/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
A fork of various classes from https://github.com/microsoft/sqltoolsservice to handle storing and exporting
data from a data reader to a file in various different formats.
data from a data reader to a file in various different formats. Extended to handle SqlEntityReference values
as hyperlinks in Excel and Markdown exports.
2 changes: 1 addition & 1 deletion MarkMpn.Sql4Cds.Export/SR.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Runtime.Serialization;
using System.Text;

namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
namespace MarkMpn.Sql4Cds.Export
{
internal class SR
{
Expand Down
2 changes: 1 addition & 1 deletion MarkMpn.Sql4Cds.Export/Utility/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System;
using System.Collections.Generic;

namespace Microsoft.SqlTools.Utility
namespace MarkMpn.Sql4Cds.Export.Utility
{
public static class ObjectExtensions
{
Expand Down
2 changes: 1 addition & 1 deletion MarkMpn.Sql4Cds.Export/Utility/Validate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System;
using System.Collections.Generic;

namespace Microsoft.SqlTools.Utility
namespace MarkMpn.Sql4Cds.Export.Utility
{
/// <summary>
/// Provides common validation methods to simplify method
Expand Down
4 changes: 2 additions & 2 deletions MarkMpn.Sql4Cds.Export/ValueFormatter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
using System.Data.Common;
using System.Data.SqlTypes;
using System.Text;
using Microsoft.SqlTools.ServiceLayer.QueryExecution;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export;
using MarkMpn.Sql4Cds.Export.Contracts;

namespace MarkMpn.Sql4Cds.Export
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;
using Microsoft.VisualStudio.LanguageServer.Protocol;

namespace MarkMpn.Sql4Cds.LanguageServer.QueryExecution.Contracts
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;

namespace MarkMpn.Sql4Cds.LanguageServer.QueryExecution.Contracts
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Collections.Generic;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.Export.Contracts;

namespace MarkMpn.Sql4Cds.LanguageServer.QueryExecution.Contracts
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
using MarkMpn.Sql4Cds.LanguageServer.QueryExecution.Contracts;
using MarkMpn.Sql4Cds.LanguageServer.Workspace;
using Microsoft.SqlTools.ServiceLayer.ExecutionPlan.Contracts;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage;
using MarkMpn.Sql4Cds.Export.Contracts;
using MarkMpn.Sql4Cds.Export.DataStorage;
using Microsoft.VisualStudio.LanguageServer.Protocol;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Metadata;
Expand Down
4 changes: 2 additions & 2 deletions MarkMpn.Sql4Cds.XTB/SqlQueryControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
using MarkMpn.Sql4Cds.Engine;
using MarkMpn.Sql4Cds.Engine.ExecutionPlan;
using MarkMpn.Sql4Cds.Export;
using MarkMpn.Sql4Cds.Export.Contracts;
using MarkMpn.Sql4Cds.Export.DataStorage;
using McTools.Xrm.Connection;
using Microsoft.ApplicationInsights;
using Microsoft.SqlServer.TransactSql.ScriptDom;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.Contracts;
using Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage;
using Microsoft.Xrm.Sdk;
using Microsoft.Xrm.Sdk.Query;
using Microsoft.Xrm.Tooling.Connector;
Expand Down

0 comments on commit 69f2e02

Please sign in to comment.