├── .gitignore
├── LICENSE
├── README.md
└── src
├── GenericParser_src
├── GenericParsing.sln
├── GenericParsing.vsmdi
├── GenericParsing
│ ├── FieldType.cs
│ ├── GenericParser.cs
│ ├── GenericParser.xml
│ ├── GenericParserAdapter.cs
│ ├── GenericParsing.csproj
│ ├── GenericParsing.shfbproj
│ ├── Help
│ │ ├── GenericParsing.chm
│ │ └── GenericParsing.mshc
│ ├── Legacy Support
│ │ └── StringArray.cs
│ ├── ParserState.cs
│ ├── ParsingException.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── SQLServerForExcel.Addin.snk
├── Performance Results
│ ├── 1000000_Rows.txt
│ ├── 100000_Rows.txt
│ ├── 10000_Rows.txt
│ ├── 1000_Rows.txt
│ ├── 100_Rows.txt
│ ├── 10_Rows.txt
│ ├── 50000_Rows.txt
│ └── Performance Tests.xlsx
├── PerformanceTests
│ ├── App.ico
│ ├── GenericParsing.PerformanceTests.csproj
│ ├── Includes
│ │ ├── LumenWorks.Framework.IO.XML
│ │ ├── LumenWorks.Framework.IO.dll
│ │ └── VersionOneGenericParser.dll
│ ├── PerformanceTests.cs
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ └── app.config
├── SolutionVersionInfo.cs
├── UnitTests
│ ├── GenericParsing.UnitTests.csproj
│ ├── Properties
│ │ └── AssemblyInfo.cs
│ ├── TestData
│ │ ├── AddingExtraColumns.out
│ │ ├── AddingExtraColumns.txt
│ │ ├── AddingExtraColumns.xml
│ │ ├── BasicEscapedCharacters.out
│ │ ├── BasicEscapedCharacters.txt
│ │ ├── BasicEscapedCharacters.xml
│ │ ├── BasicMaxRows.out
│ │ ├── BasicMaxRows.txt
│ │ ├── BasicMaxRows.xml
│ │ ├── BasicSkipRows.out
│ │ ├── BasicSkipRows.txt
│ │ ├── BasicSkipRows.xml
│ │ ├── BasicTextQualifiers.out
│ │ ├── BasicTextQualifiers.txt
│ │ ├── BasicTextQualifiers.xml
│ │ ├── ComplexDataDelimiter.out
│ │ ├── ComplexDataDelimiter.txt
│ │ ├── ComplexDataDelimiter.xml
│ │ ├── ComplexDataFixed.out
│ │ ├── ComplexDataFixed.txt
│ │ ├── ComplexDataFixed.xml
│ │ ├── DifferentColumnDelimiter.out
│ │ ├── DifferentColumnDelimiter.txt
│ │ ├── DifferentColumnDelimiter.xml
│ │ ├── EscapeWithoutTextQualifier.out
│ │ ├── EscapeWithoutTextQualifier.txt
│ │ ├── EscapeWithoutTextQualifier.xml
│ │ ├── EscapedCharacterAtEndOfFile.out
│ │ ├── EscapedCharacterAtEndOfFile.txt
│ │ ├── EscapedCharacterAtEndOfFile.xml
│ │ ├── EscapedCharacterAtEndOfRowDelimiter.out
│ │ ├── EscapedCharacterAtEndOfRowDelimiter.txt
│ │ ├── EscapedCharacterAtEndOfRowDelimiter.xml
│ │ ├── EscapedCharacterAtEndOfRowFixedWidth.out
│ │ ├── EscapedCharacterAtEndOfRowFixedWidth.txt
│ │ ├── EscapedCharacterAtEndOfRowFixedWidth.xml
│ │ ├── ExpectedColumnCountErrorAdding.out
│ │ ├── ExpectedColumnCountErrorAdding.txt
│ │ ├── ExpectedColumnCountErrorAdding.xml
│ │ ├── ExpectedColumnCountErrorRemoving.out
│ │ ├── ExpectedColumnCountErrorRemoving.txt
│ │ ├── ExpectedColumnCountErrorRemoving.xml
│ │ ├── FirstRowSetsExpectedColumnCountWithHeaderRow.out
│ │ ├── FirstRowSetsExpectedColumnCountWithHeaderRow.txt
│ │ ├── FirstRowSetsExpectedColumnCountWithHeaderRow.xml
│ │ ├── FirstRowSetsExpectedColumnCountWithHeaderRowError.out
│ │ ├── FirstRowSetsExpectedColumnCountWithHeaderRowError.txt
│ │ ├── FirstRowSetsExpectedColumnCountWithHeaderRowError.xml
│ │ ├── FirstRowSetsExpectedColumnCountWithoutHeaderRow.out
│ │ ├── FirstRowSetsExpectedColumnCountWithoutHeaderRow.txt
│ │ ├── FirstRowSetsExpectedColumnCountWithoutHeaderRow.xml
│ │ ├── FirstRowSetsExpectedColumnCountWithoutHeaderRowError.out
│ │ ├── FirstRowSetsExpectedColumnCountWithoutHeaderRowError.txt
│ │ ├── FirstRowSetsExpectedColumnCountWithoutHeaderRowError.xml
│ │ ├── HandlingDuplicateColumnNames.out
│ │ ├── HandlingDuplicateColumnNames.txt
│ │ ├── HandlingDuplicateColumnNames.xml
│ │ ├── IncludeLineNumber.out
│ │ ├── IncludeLineNumber.txt
│ │ ├── IncludeLineNumber.xml
│ │ ├── MaxRowsIgnoresCommentsHeader.out
│ │ ├── MaxRowsIgnoresCommentsHeader.txt
│ │ ├── MaxRowsIgnoresCommentsHeader.xml
│ │ ├── NotSkippingEmptyRowsDelimiter.out
│ │ ├── NotSkippingEmptyRowsDelimiter.txt
│ │ ├── NotSkippingEmptyRowsDelimiter.xml
│ │ ├── NotSkippingEmptyRowsDelimiterWithHeaderWithFileRowNumber.out
│ │ ├── NotSkippingEmptyRowsDelimiterWithHeaderWithFileRowNumber.txt
│ │ ├── NotSkippingEmptyRowsDelimiterWithHeaderWithFileRowNumber.xml
│ │ ├── NotSkippingEmptyRowsDelimiterWithHeaderWithoutFileRowNumber.out
│ │ ├── NotSkippingEmptyRowsDelimiterWithHeaderWithoutFileRowNumber.txt
│ │ ├── NotSkippingEmptyRowsDelimiterWithHeaderWithoutFileRowNumber.xml
│ │ ├── NotSkippingEmptyRowsDelimiterWithoutFileRowNumber.out
│ │ ├── NotSkippingEmptyRowsDelimiterWithoutFileRowNumber.txt
│ │ ├── NotSkippingEmptyRowsDelimiterWithoutFileRowNumber.xml
│ │ ├── NotSkippingEmptyRowsFixedWidth.out
│ │ ├── NotSkippingEmptyRowsFixedWidth.txt
│ │ ├── NotSkippingEmptyRowsFixedWidth.xml
│ │ ├── ReadLastRowWithRowDelimiter.out
│ │ ├── ReadLastRowWithRowDelimiter.txt
│ │ ├── ReadLastRowWithRowDelimiter.xml
│ │ ├── ReadLastRowWithoutRowDelimiter.out
│ │ ├── ReadLastRowWithoutRowDelimiter.txt
│ │ ├── ReadLastRowWithoutRowDelimiter.xml
│ │ ├── ReadingInHeader.out
│ │ ├── ReadingInHeader.txt
│ │ ├── ReadingInHeader.xml
│ │ ├── ReadingInHeaderAfterComments.out
│ │ ├── ReadingInHeaderAfterComments.txt
│ │ ├── ReadingInHeaderAfterComments.xml
│ │ ├── RowWithoutColumnDelimiter.out
│ │ ├── RowWithoutColumnDelimiter.txt
│ │ ├── RowWithoutColumnDelimiter.xml
│ │ ├── SimpleDelimiter.out
│ │ ├── SimpleDelimiter.txt
│ │ ├── SimpleDelimiter.xml
│ │ ├── SimpleDelimiterWithControlCharacters.out
│ │ ├── SimpleDelimiterWithControlCharacters.txt
│ │ ├── SimpleDelimiterWithControlCharacters.xml
│ │ ├── SimpleFixedWidth.out
│ │ ├── SimpleFixedWidth.txt
│ │ ├── SimpleFixedWidth.xml
│ │ ├── SkippingAllRows.out
│ │ ├── SkippingAllRows.txt
│ │ ├── SkippingAllRows.xml
│ │ ├── SkippingBeginningAndEndingRows.out
│ │ ├── SkippingBeginningAndEndingRows.txt
│ │ ├── SkippingBeginningAndEndingRows.xml
│ │ ├── SkippingBeginningAndEndingRowsAll.out
│ │ ├── SkippingBeginningAndEndingRowsAll.txt
│ │ ├── SkippingBeginningAndEndingRowsAll.xml
│ │ ├── SkippingComments.out
│ │ ├── SkippingComments.txt
│ │ ├── SkippingComments.xml
│ │ ├── SkippingEmptyRowsWithDelimiter.out
│ │ ├── SkippingEmptyRowsWithDelimiter.txt
│ │ ├── SkippingEmptyRowsWithDelimiter.xml
│ │ ├── SkippingEmptyRowsWithFixedWidth.out
│ │ ├── SkippingEmptyRowsWithFixedWidth.txt
│ │ ├── SkippingEmptyRowsWithFixedWidth.xml
│ │ ├── SkippingEndingRows.out
│ │ ├── SkippingEndingRows.txt
│ │ ├── SkippingEndingRows.xml
│ │ ├── SkippingEndingRowsAll.out
│ │ ├── SkippingEndingRowsAll.txt
│ │ ├── SkippingEndingRowsAll.xml
│ │ ├── SkippingEndingRowsExactlyAll.out
│ │ ├── SkippingEndingRowsExactlyAll.txt
│ │ ├── SkippingEndingRowsExactlyAll.xml
│ │ ├── SkippingRowsAtEndOfBuffer.out
│ │ ├── SkippingRowsAtEndOfBuffer.txt
│ │ ├── SkippingRowsAtEndOfBuffer.xml
│ │ ├── TextQualifierBeginningAndEnd.out
│ │ ├── TextQualifierBeginningAndEnd.txt
│ │ ├── TextQualifierBeginningAndEnd.xml
│ │ ├── TextQualifierNotClosedAtEnd.out
│ │ ├── TextQualifierNotClosedAtEnd.txt
│ │ ├── TextQualifierNotClosedAtEnd.xml
│ │ ├── TextQualifierWithoutEscape.out
│ │ ├── TextQualifierWithoutEscape.txt
│ │ ├── TextQualifierWithoutEscape.xml
│ │ ├── TextQualifiersWithDelimiters.out
│ │ ├── TextQualifiersWithDelimiters.txt
│ │ ├── TextQualifiersWithDelimiters.xml
│ │ ├── TrimmingResults.out
│ │ ├── TrimmingResults.txt
│ │ ├── TrimmingResults.xml
│ │ ├── UnicodeSupported.out
│ │ ├── UnicodeSupported.txt
│ │ ├── UnicodeSupported.xml
│ │ ├── XmlTest.out
│ │ ├── XmlTest.txt
│ │ └── XmlTest.xml
│ └── UnitTests.cs
└── localtestrun.testrunconfig
├── SQLServerForExcel.Addin
├── AddinModule.cs
├── AddinModule.resx
├── ChangedRow.xml
├── ConnectionConfigs
│ ├── DataConnectionConfiguration.cs
│ └── IDataConnectionConfiguration.cs
├── DatabaseExplorerTaskPane.Designer.cs
├── DatabaseExplorerTaskPane.cs
├── DatabaseExplorerTaskPane.resx
├── Extensions
│ ├── EnurableExtensions.cs
│ └── WorksheetExtensions.cs
├── Interops
│ ├── Microsoft.Office.Interop.Excel.dll
│ ├── Microsoft.Vbe.Interop.dll
│ └── Office.dll
├── Loader
│ ├── adxloader.dll
│ ├── adxloader.dll.manifest
│ └── adxloader64.dll
├── Properties
│ ├── AssemblyInfo.cs
│ ├── Resources.Designer.cs
│ └── Resources.resx
├── Resources
│ └── SSMS.ico
├── SQLServerForExcel.Addin.csproj
├── SQLServerForExcel.Addin.snk
├── SQLServerForExcel.AddinSetup
│ └── 0.0.1
│ │ ├── License.rtf
│ │ ├── Product.wxs
│ │ ├── Resources
│ │ ├── WiXDefBannerBitmap.bmp
│ │ ├── WiXNewFolderBtn.ico
│ │ └── WiXUpFolderBtn.ico
│ │ ├── SQLServerForExcel.AddinSetup(0.0.1).wixproj
│ │ ├── XSLT
│ │ ├── RegisterForCOM.xml
│ │ ├── XslFile.xslt
│ │ ├── XslProjectOutput.xslt
│ │ ├── XslRegisterForCOM.xslt
│ │ ├── _SQLServerForExcel.Addin.xml
│ │ └── readme.txt
│ │ ├── banner.bmp
│ │ └── dialog.bmp
├── SQLServerForExcel.AddinSetup_OLD
│ └── 1.0.0
│ │ ├── License.rtf
│ │ ├── Product.wxs
│ │ ├── SQLServerForExcel.wixproj
│ │ ├── banner.bmp
│ │ └── dialog.bmp
└── SqlUtils.cs
├── SQLServerForExcel.sln
└── lib
├── GenericParsing.dll
├── Microsoft.Data.ConnectionUI.Dialog.dll
└── Microsoft.Data.ConnectionUI.dll
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 |
4 | # User-specific files
5 | *.suo
6 | *.user
7 | *.userosscache
8 | *.sln.docstates
9 |
10 | # User-specific files (MonoDevelop/Xamarin Studio)
11 | *.userprefs
12 |
13 | # Build results
14 | [Dd]ebug/
15 | [Dd]ebugPublic/
16 | [Rr]elease/
17 | [Rr]eleases/
18 | x64/
19 | x86/
20 | build/
21 | bld/
22 | [Bb]in/
23 | [Oo]bj/
24 |
25 | # Visual Studo 2015 cache/options directory
26 | .vs/
27 |
28 | # MSTest test Results
29 | [Tt]est[Rr]esult*/
30 | [Bb]uild[Ll]og.*
31 |
32 | # NUNIT
33 | *.VisualState.xml
34 | TestResult.xml
35 |
36 | # Build Results of an ATL Project
37 | [Dd]ebugPS/
38 | [Rr]eleasePS/
39 | dlldata.c
40 |
41 | *_i.c
42 | *_p.c
43 | *_i.h
44 | *.ilk
45 | *.meta
46 | *.obj
47 | *.pch
48 | *.pdb
49 | *.pgc
50 | *.pgd
51 | *.rsp
52 | *.sbr
53 | *.tlb
54 | *.tli
55 | *.tlh
56 | *.tmp
57 | *.tmp_proj
58 | *.log
59 | *.vspscc
60 | *.vssscc
61 | .builds
62 | *.pidb
63 | *.svclog
64 | *.scc
65 |
66 | # Chutzpah Test files
67 | _Chutzpah*
68 |
69 | # Visual C++ cache files
70 | ipch/
71 | *.aps
72 | *.ncb
73 | *.opensdf
74 | *.sdf
75 | *.cachefile
76 |
77 | # Visual Studio profiler
78 | *.psess
79 | *.vsp
80 | *.vspx
81 |
82 | # TFS 2012 Local Workspace
83 | $tf/
84 |
85 | # Guidance Automation Toolkit
86 | *.gpState
87 |
88 | # ReSharper is a .NET coding add-in
89 | _ReSharper*/
90 | *.[Rr]e[Ss]harper
91 | *.DotSettings.user
92 |
93 | # JustCode is a .NET coding addin-in
94 | .JustCode
95 |
96 | # TeamCity is a build add-in
97 | _TeamCity*
98 |
99 | # DotCover is a Code Coverage Tool
100 | *.dotCover
101 |
102 | # NCrunch
103 | _NCrunch_*
104 | .*crunch*.local.xml
105 |
106 | # MightyMoose
107 | *.mm.*
108 | AutoTest.Net/
109 |
110 | # Web workbench (sass)
111 | .sass-cache/
112 |
113 | # Installshield output folder
114 | [Ee]xpress/
115 |
116 | # DocProject is a documentation generator add-in
117 | DocProject/buildhelp/
118 | DocProject/Help/*.HxT
119 | DocProject/Help/*.HxC
120 | DocProject/Help/*.hhc
121 | DocProject/Help/*.hhk
122 | DocProject/Help/*.hhp
123 | DocProject/Help/Html2
124 | DocProject/Help/html
125 |
126 | # Click-Once directory
127 | publish/
128 |
129 | # Publish Web Output
130 | *.[Pp]ublish.xml
131 | *.azurePubxml
132 | # TODO: Comment the next line if you want to checkin your web deploy settings
133 | # but database connection strings (with potential passwords) will be unencrypted
134 | *.pubxml
135 | *.publishproj
136 |
137 | # NuGet Packages
138 | *.nupkg
139 | # The packages folder can be ignored because of Package Restore
140 | **/packages/*
141 | # except build/, which is used as an MSBuild target.
142 | !**/packages/build/
143 | # Uncomment if necessary however generally it will be regenerated when needed
144 | #!**/packages/repositories.config
145 |
146 | # Windows Azure Build Output
147 | csx/
148 | *.build.csdef
149 |
150 | # Windows Store app package directory
151 | AppPackages/
152 |
153 | # Others
154 | *.[Cc]ache
155 | ClientBin/
156 | [Ss]tyle[Cc]op.*
157 | ~$*
158 | *~
159 | *.dbmdl
160 | *.dbproj.schemaview
161 | *.pfx
162 | *.publishsettings
163 | node_modules/
164 | bower_components/
165 |
166 | # RIA/Silverlight projects
167 | Generated_Code/
168 |
169 | # Backup & report files from converting an old project file
170 | # to a newer Visual Studio version. Backup files are not needed,
171 | # because we have git ;-)
172 | _UpgradeReport_Files/
173 | Backup*/
174 | UpgradeLog*.XML
175 | UpgradeLog*.htm
176 |
177 | # SQL Server files
178 | *.mdf
179 | *.ldf
180 |
181 | # Business Intelligence projects
182 | *.rdl.data
183 | *.bim.layout
184 | *.bim_*.settings
185 |
186 | # Microsoft Fakes
187 | FakesAssemblies/
188 |
189 | # Node.js Tools for Visual Studio
190 | .ntvs_analysis.dat
191 |
192 | # Visual Studio 6 build log
193 | *.plg
194 |
195 | # Visual Studio 6 workspace options file
196 | *.opt
197 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | :warning: This repository has been deprecated and is now read only. If you're looking for a similar product, take a look at [Devart Excel Add-ins](https://www.devart.com/excel-addins/sql-server.html)
2 |
3 | :information_source: If you need your own Office add-in, web app or mobile app. Drop me a line at https://coalition.software
4 |
5 | # SQL Server for Excel
6 |
7 | ##Import, edit and generate data for SQL Server in Excel.
8 |
9 | SQL Server for Excel is an Excel Add-in that provides users a way to import and edit table data in Excel.
10 | It has been designed to be a simple tool for data analysts to manipulate SQL data without having to write scripts.
11 | It also offers powerful data generation in order to generate sample data for a SQL database.
12 |
13 | This is the code for the MS Excel Add-in on [www.sqlforexcel.com](http://sqlforexcel.com/)
14 |
15 | If you wish to contribute, please submit a pull request.
16 |
17 | #### You'll need [Add-in Express for Office and .net](https://www.add-in-express.com/add-in-net/index.php) in order to build and run this project.
18 |
--------------------------------------------------------------------------------
/src/GenericParser_src/GenericParsing.sln:
--------------------------------------------------------------------------------
1 | Microsoft Visual Studio Solution File, Format Version 11.00
2 | # Visual Studio 2010
3 | Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{936F8079-8AE8-4F7A-921C-9E44920F4B9E}"
4 | ProjectSection(SolutionItems) = preProject
5 | GenericParsing.vsmdi = GenericParsing.vsmdi
6 | localtestrun.testrunconfig = localtestrun.testrunconfig
7 | SolutionVersionInfo.cs = SolutionVersionInfo.cs
8 | EndProjectSection
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GenericParsing.UnitTests", "UnitTests\GenericParsing.UnitTests.csproj", "{2F6733F8-0E19-417D-B665-1C9947371AA8}"
11 | EndProject
12 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GenericParsing.PerformanceTests", "PerformanceTests\GenericParsing.PerformanceTests.csproj", "{28A4801F-B624-4AED-9765-B172203EB188}"
13 | EndProject
14 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GenericParsing", "GenericParsing\GenericParsing.csproj", "{ADD325F8-CBD9-43FE-850D-E2F34D736C9D}"
15 | EndProject
16 | Global
17 | GlobalSection(TestCaseManagementSettings) = postSolution
18 | CategoryFile = GenericParsing.vsmdi
19 | EndGlobalSection
20 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
21 | Debug|Any CPU = Debug|Any CPU
22 | Release|Any CPU = Release|Any CPU
23 | EndGlobalSection
24 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
25 | {2F6733F8-0E19-417D-B665-1C9947371AA8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26 | {2F6733F8-0E19-417D-B665-1C9947371AA8}.Debug|Any CPU.Build.0 = Debug|Any CPU
27 | {2F6733F8-0E19-417D-B665-1C9947371AA8}.Release|Any CPU.ActiveCfg = Release|Any CPU
28 | {2F6733F8-0E19-417D-B665-1C9947371AA8}.Release|Any CPU.Build.0 = Release|Any CPU
29 | {28A4801F-B624-4AED-9765-B172203EB188}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30 | {28A4801F-B624-4AED-9765-B172203EB188}.Debug|Any CPU.Build.0 = Debug|Any CPU
31 | {28A4801F-B624-4AED-9765-B172203EB188}.Release|Any CPU.ActiveCfg = Release|Any CPU
32 | {28A4801F-B624-4AED-9765-B172203EB188}.Release|Any CPU.Build.0 = Release|Any CPU
33 | {ADD325F8-CBD9-43FE-850D-E2F34D736C9D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34 | {ADD325F8-CBD9-43FE-850D-E2F34D736C9D}.Debug|Any CPU.Build.0 = Debug|Any CPU
35 | {ADD325F8-CBD9-43FE-850D-E2F34D736C9D}.Release|Any CPU.ActiveCfg = Release|Any CPU
36 | {ADD325F8-CBD9-43FE-850D-E2F34D736C9D}.Release|Any CPU.Build.0 = Release|Any CPU
37 | EndGlobalSection
38 | GlobalSection(SolutionProperties) = preSolution
39 | HideSolutionNode = FALSE
40 | EndGlobalSection
41 | EndGlobal
42 |
--------------------------------------------------------------------------------
/src/GenericParser_src/GenericParsing.vsmdi:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/src/GenericParser_src/GenericParsing/FieldType.cs:
--------------------------------------------------------------------------------
1 | // GenericParsing
2 | // Copyright © 2010 Andrew Rissing
3 | //
4 | // Permission is hereby granted, free of charge, to any person obtaining a copy
5 | // of this software and associated documentation files (the "Software"), to deal
6 | // in the Software without restriction, including without limitation the rights
7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
8 | // of the Software, and to permit persons to whom the Software is furnished to do so,
9 | // subject to the following conditions:
10 | //
11 | // The above copyright notice and this permission notice shall be included in all
12 | // copies or substantial portions of the Software.
13 | //
14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15 | // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
16 | // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
17 | // FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18 | // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
20 | namespace GenericParsing
21 | {
22 | ///
23 | /// Indicates whether text fields are delimited or fixed width.
24 | ///
25 | public enum FieldType
26 | {
27 | ///
28 | /// Indicates that the fields are delimited.
29 | ///
30 | Delimited = 0,
31 | ///
32 | /// Indicates that the fields are fixed width.
33 | ///
34 | FixedWidth = 1,
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/src/GenericParser_src/GenericParsing/GenericParser.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/GenericParser_src/GenericParsing/GenericParser.cs
--------------------------------------------------------------------------------
/src/GenericParser_src/GenericParsing/GenericParsing.shfbproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 | Debug
7 | AnyCPU
8 | 2.0
9 | {b54bb34b-54d3-4bb8-bb49-6f8aaa52cde7}
10 | 1.8.0.3
11 |
13 | Documentation
14 | Documentation
15 | Documentation
16 |
17 | .\Help\
18 | GenericParsing
19 | 2.0.50727
20 | HtmlHelp1
21 | False
22 | The GenericParsing namespace is designed to provide a flexible and efficient mannerof parsing various flat files formats.
23 | Copyright ©%3b 2010 Andrew Rissing
24 | http://www.codeproject.com/info/cpol10.aspx
25 | GenericParsing
26 | vs2005
27 | Local
28 | Standard
29 | 1.1.0.0
30 | Parameter, Returns, AutoDocumentCtors, Namespace, TypeParameter, AutoDocumentDispose
31 |
32 |
33 |
34 |
35 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
--------------------------------------------------------------------------------
/src/GenericParser_src/GenericParsing/Help/GenericParsing.chm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/GenericParser_src/GenericParsing/Help/GenericParsing.chm
--------------------------------------------------------------------------------
/src/GenericParser_src/GenericParsing/Help/GenericParsing.mshc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/GenericParser_src/GenericParsing/Help/GenericParsing.mshc
--------------------------------------------------------------------------------
/src/GenericParser_src/GenericParsing/ParserState.cs:
--------------------------------------------------------------------------------
1 | // GenericParsing
2 | // Copyright © 2010 Andrew Rissing
3 | //
4 | // Permission is hereby granted, free of charge, to any person obtaining a copy
5 | // of this software and associated documentation files (the "Software"), to deal
6 | // in the Software without restriction, including without limitation the rights
7 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
8 | // of the Software, and to permit persons to whom the Software is furnished to do so,
9 | // subject to the following conditions:
10 | //
11 | // The above copyright notice and this permission notice shall be included in all
12 | // copies or substantial portions of the Software.
13 | //
14 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
15 | // INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
16 | // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
17 | // FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
18 | // ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19 |
20 | namespace GenericParsing
21 | {
22 | ///
23 | /// The current internal state of the parser.
24 | ///
25 | public enum ParserState
26 | {
27 | ///
28 | /// Indicates that the parser has no datasource and is not properly setup.
29 | ///
30 | NoDataSource = 0,
31 | ///
32 | /// Indicates that the parser is ready to begin parsing.
33 | ///
34 | Ready = 1,
35 | ///
36 | /// Indicates that the parser is currently parsing the datasource.
37 | ///
38 | Parsing = 2,
39 | ///
40 | /// Indicates that the parser has finished parsing the datasource.
41 | ///
42 | Finished = 3
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/src/GenericParser_src/GenericParsing/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/GenericParser_src/GenericParsing/Properties/AssemblyInfo.cs
--------------------------------------------------------------------------------
/src/GenericParser_src/GenericParsing/SQLServerForExcel.Addin.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/GenericParser_src/GenericParsing/SQLServerForExcel.Addin.snk
--------------------------------------------------------------------------------
/src/GenericParser_src/Performance Results/1000000_Rows.txt:
--------------------------------------------------------------------------------
1 | Number of iterations of data [1 iteration = 10 rows]: 100000
2 |
3 | The following will generate performance information about the
4 | GenericParser class.
5 |
6 | Executions for each test: 10
7 | Rows of CSV Data: 1000000
8 | Rows of FixedWidth Data: 1000000
9 |
10 | <- Press Enter to Proceed ->
11 |
12 | Size of Csv data file: 138.28 mb
13 |
14 | Delimited MS Text Driver - Avg. Time 45342.7 (ms) [ 3.050 mb/s]
15 | Delimited MS Text Field Parser - Avg. Time 53648.5 (ms) [ 2.578 mb/s]
16 | Delimited CsvReader 3.7 - Avg. Time 2648.6 (ms) [ 52.210 mb/s]
17 | Delimited GenericParser 1.0 - Avg. Time 5064.3 (ms) [ 27.305 mb/s]
18 | Delimited GenericParser 1.1 - Avg. Time 3497.4 (ms) [ 39.539 mb/s]
19 |
20 | ============================================
21 |
22 | Size of FixedWidth data file: 167.85 mb
23 |
24 | FixedWidth MS Text Driver - Avg. Time 44021.6 (ms) [ 3.813 mb/s]
25 | FixedWidth MS Text Field Parser - Avg. Time 45490.0 (ms) [ 3.690 mb/s]
26 | FixedWidth GenericParser 1.0 - Avg. Time 8296.7 (ms) [ 20.231 mb/s]
27 | FixedWidth GenericParser 1.1 - Avg. Time 4474.1 (ms) [ 37.515 mb/s]
28 |
29 | Completed Performance testing.
30 |
31 | <- Press Enter to Exit ->
32 |
--------------------------------------------------------------------------------
/src/GenericParser_src/Performance Results/100000_Rows.txt:
--------------------------------------------------------------------------------
1 | Number of iterations of data [1 iteration = 10 rows]: 10000
2 |
3 | The following will generate performance information about the
4 | GenericParser class.
5 |
6 | Executions for each test: 10
7 | Rows of CSV Data: 100000
8 | Rows of FixedWidth Data: 100000
9 |
10 | <- Press Enter to Proceed ->
11 |
12 | Size of Csv data file: 13.83 mb
13 |
14 | Delimited MS Text Driver - Avg. Time 4606.7 (ms) [ 3.002 mb/s]
15 | Delimited MS Text Field Parser - Avg. Time 5347.7 (ms) [ 2.586 mb/s]
16 | Delimited CsvReader 3.7 - Avg. Time 263.2 (ms) [ 52.539 mb/s]
17 | Delimited GenericParser 1.0 - Avg. Time 494.5 (ms) [ 27.964 mb/s]
18 | Delimited GenericParser 1.1 - Avg. Time 339.3 (ms) [ 40.755 mb/s]
19 |
20 | ============================================
21 |
22 | Size of FixedWidth data file: 16.78 mb
23 |
24 | FixedWidth MS Text Driver - Avg. Time 4481.8 (ms) [ 3.745 mb/s]
25 | FixedWidth MS Text Field Parser - Avg. Time 4610.4 (ms) [ 3.641 mb/s]
26 | FixedWidth GenericParser 1.0 - Avg. Time 826.2 (ms) [ 20.316 mb/s]
27 | FixedWidth GenericParser 1.1 - Avg. Time 440.7 (ms) [ 38.086 mb/s]
28 |
29 | Completed Performance testing.
30 |
31 | <- Press Enter to Exit ->
32 |
--------------------------------------------------------------------------------
/src/GenericParser_src/Performance Results/10000_Rows.txt:
--------------------------------------------------------------------------------
1 | Number of iterations of data [1 iteration = 10 rows]: 1000
2 |
3 | The following will generate performance information about the
4 | GenericParser class.
5 |
6 | Executions for each test: 10
7 | Rows of CSV Data: 10000
8 | Rows of FixedWidth Data: 10000
9 |
10 | <- Press Enter to Proceed ->
11 |
12 | Size of Csv data file: 1.38 mb
13 |
14 | Delimited MS Text Driver - Avg. Time 526.2 (ms) [ 2.628 mb/s]
15 | Delimited MS Text Field Parser - Avg. Time 536.3 (ms) [ 2.578 mb/s]
16 | Delimited CsvReader 3.7 - Avg. Time 27.7 (ms) [ 49.922 mb/s]
17 | Delimited GenericParser 1.0 - Avg. Time 50.8 (ms) [ 27.221 mb/s]
18 | Delimited GenericParser 1.1 - Avg. Time 35.6 (ms) [ 38.843 mb/s]
19 |
20 | ============================================
21 |
22 | Size of FixedWidth data file: 1.68 mb
23 |
24 | FixedWidth MS Text Driver - Avg. Time 508.3 (ms) [ 3.302 mb/s]
25 | FixedWidth MS Text Field Parser - Avg. Time 448.2 (ms) [ 3.745 mb/s]
26 | FixedWidth GenericParser 1.0 - Avg. Time 82.8 (ms) [ 20.271 mb/s]
27 | FixedWidth GenericParser 1.1 - Avg. Time 45.2 (ms) [ 37.134 mb/s]
28 |
29 | Completed Performance testing.
30 |
31 | <- Press Enter to Exit ->
32 |
--------------------------------------------------------------------------------
/src/GenericParser_src/Performance Results/1000_Rows.txt:
--------------------------------------------------------------------------------
1 | Number of iterations of data [1 iteration = 10 rows]: 100
2 |
3 | The following will generate performance information about the
4 | GenericParser class.
5 |
6 | Executions for each test: 10
7 | Rows of CSV Data: 1000
8 | Rows of FixedWidth Data: 1000
9 |
10 | <- Press Enter to Proceed ->
11 |
12 | Size of Csv data file: 141.60 kb
13 |
14 | Delimited MS Text Driver - Avg. Time 116.8 (ms) [ 1.184 mb/s]
15 | Delimited MS Text Field Parser - Avg. Time 55.2 (ms) [ 2.505 mb/s]
16 | Delimited CsvReader 3.7 - Avg. Time 4.1 (ms) [ 33.728 mb/s]
17 | Delimited GenericParser 1.0 - Avg. Time 6.2 (ms) [ 22.304 mb/s]
18 | Delimited GenericParser 1.1 - Avg. Time 4.8 (ms) [ 28.809 mb/s]
19 |
20 | ============================================
21 |
22 | Size of FixedWidth data file: 171.88 kb
23 |
24 | FixedWidth MS Text Driver - Avg. Time 110.0 (ms) [ 1.526 mb/s]
25 | FixedWidth MS Text Field Parser - Avg. Time 47.3 (ms) [ 3.549 mb/s]
26 | FixedWidth GenericParser 1.0 - Avg. Time 8.6 (ms) [ 19.517 mb/s]
27 | FixedWidth GenericParser 1.1 - Avg. Time 4.8 (ms) [ 34.968 mb/s]
28 |
29 | Completed Performance testing.
30 |
31 | <- Press Enter to Exit ->
32 |
--------------------------------------------------------------------------------
/src/GenericParser_src/Performance Results/100_Rows.txt:
--------------------------------------------------------------------------------
1 | Number of iterations of data [1 iteration = 10 rows]: 10
2 |
3 | The following will generate performance information about the
4 | GenericParser class.
5 |
6 | Executions for each test: 10
7 | Rows of CSV Data: 100
8 | Rows of FixedWidth Data: 100
9 |
10 | <- Press Enter to Proceed ->
11 |
12 | Size of Csv data file: 14.16 kb
13 |
14 | Delimited MS Text Driver - Avg. Time 83.0 (ms) [ 170.604 kb/s]
15 | Delimited MS Text Field Parser - Avg. Time 6.8 (ms) [ 2.034 mb/s]
16 | Delimited CsvReader 3.7 - Avg. Time 1.6 (ms) [ 8.643 mb/s]
17 | Delimited GenericParser 1.0 - Avg. Time 1.7 (ms) [ 8.134 mb/s]
18 | Delimited GenericParser 1.1 - Avg. Time 1.7 (ms) [ 8.134 mb/s]
19 |
20 | ============================================
21 |
22 | Size of FixedWidth data file: 17.19 kb
23 |
24 | FixedWidth MS Text Driver - Avg. Time 77.9 (ms) [ 220.635 kb/s]
25 | FixedWidth MS Text Field Parser - Avg. Time 5.3 (ms) [ 3.167 mb/s]
26 | FixedWidth GenericParser 1.0 - Avg. Time 1.1 (ms) [ 15.259 mb/s]
27 | FixedWidth GenericParser 1.1 - Avg. Time 0.7 (ms) [ 23.978 mb/s]
28 |
29 | Completed Performance testing.
30 |
31 | <- Press Enter to Exit ->
32 |
--------------------------------------------------------------------------------
/src/GenericParser_src/Performance Results/10_Rows.txt:
--------------------------------------------------------------------------------
1 | Number of iterations of data [1 iteration = 10 rows]: 1
2 |
3 | The following will generate performance information about the
4 | GenericParser class.
5 |
6 | Executions for each test: 10
7 | Rows of CSV Data: 10
8 | Rows of FixedWidth Data: 10
9 |
10 | <- Press Enter to Proceed ->
11 |
12 | Size of Csv data file: 1.42 kb
13 |
14 | Delimited MS Text Driver - Avg. Time 68.8 (ms) [ 20.582 kb/s]
15 | Delimited MS Text Field Parser - Avg. Time 2.0 (ms) [ 708.008 kb/s]
16 | Delimited CsvReader 3.7 - Avg. Time 2.2 (ms) [ 643.643 kb/s]
17 | Delimited GenericParser 1.0 - Avg. Time 2.1 (ms) [ 674.293 kb/s]
18 | Delimited GenericParser 1.1 - Avg. Time 1.4 (ms) [ 1011.440 kb/s]
19 |
20 | ============================================
21 |
22 | Size of FixedWidth data file: 1.72 kb
23 |
24 | FixedWidth MS Text Driver - Avg. Time 65.0 (ms) [ 26.442 kb/s]
25 | FixedWidth MS Text Field Parser - Avg. Time 1.0 (ms) [ 1.678 mb/s]
26 | FixedWidth GenericParser 1.0 - Avg. Time 0.3 (ms) [ 5.595 mb/s]
27 | FixedWidth GenericParser 1.1 - Avg. Time 0.3 (ms) [ 5.595 mb/s]
28 |
29 | Completed Performance testing.
30 |
31 | <- Press Enter to Exit ->
32 |
--------------------------------------------------------------------------------
/src/GenericParser_src/Performance Results/50000_Rows.txt:
--------------------------------------------------------------------------------
1 | Number of iterations of data [1 iteration = 10 rows]: 5000
2 |
3 | The following will generate performance information about the
4 | GenericParser class.
5 |
6 | Executions for each test: 10
7 | Rows of CSV Data: 50000
8 | Rows of FixedWidth Data: 50000
9 |
10 | <- Press Enter to Proceed ->
11 |
12 | Size of Csv data file: 6.91 mb
13 |
14 | Delimited MS Text Driver - Avg. Time 2359.2 (ms) [ 2.931 mb/s]
15 | Delimited MS Text Field Parser - Avg. Time 2657.6 (ms) [ 2.602 mb/s]
16 | Delimited CsvReader 3.7 - Avg. Time 130.1 (ms) [ 53.145 mb/s]
17 | Delimited GenericParser 1.0 - Avg. Time 246.9 (ms) [ 28.004 mb/s]
18 | Delimited GenericParser 1.1 - Avg. Time 171.1 (ms) [ 40.410 mb/s]
19 |
20 | ============================================
21 |
22 | Size of FixedWidth data file: 8.39 mb
23 |
24 | FixedWidth MS Text Driver - Avg. Time 2278.2 (ms) [ 3.684 mb/s]
25 | FixedWidth MS Text Field Parser - Avg. Time 2314.7 (ms) [ 3.626 mb/s]
26 | FixedWidth GenericParser 1.0 - Avg. Time 434.2 (ms) [ 19.328 mb/s]
27 | FixedWidth GenericParser 1.1 - Avg. Time 232.9 (ms) [ 36.034 mb/s]
28 |
29 | Completed Performance testing.
30 |
31 | <- Press Enter to Exit ->
32 |
--------------------------------------------------------------------------------
/src/GenericParser_src/Performance Results/Performance Tests.xlsx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/GenericParser_src/Performance Results/Performance Tests.xlsx
--------------------------------------------------------------------------------
/src/GenericParser_src/PerformanceTests/App.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/GenericParser_src/PerformanceTests/App.ico
--------------------------------------------------------------------------------
/src/GenericParser_src/PerformanceTests/Includes/LumenWorks.Framework.IO.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/GenericParser_src/PerformanceTests/Includes/LumenWorks.Framework.IO.dll
--------------------------------------------------------------------------------
/src/GenericParser_src/PerformanceTests/Includes/VersionOneGenericParser.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/GenericParser_src/PerformanceTests/Includes/VersionOneGenericParser.dll
--------------------------------------------------------------------------------
/src/GenericParser_src/PerformanceTests/PerformanceTests.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/GenericParser_src/PerformanceTests/PerformanceTests.cs
--------------------------------------------------------------------------------
/src/GenericParser_src/PerformanceTests/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/GenericParser_src/PerformanceTests/Properties/AssemblyInfo.cs
--------------------------------------------------------------------------------
/src/GenericParser_src/PerformanceTests/app.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/GenericParser_src/SolutionVersionInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | //
5 | // Version information for an assembly consists of the following four values:
6 | //
7 | // Major Version
8 | // Minor Version
9 | // Build Number
10 | // Revision
11 | //
12 | // You can specify all the values or you can default the Revision and Build Numbers
13 | // by using the '*' as shown below:
14 |
15 | [assembly: AssemblyVersion("1.1.3.*")]
16 | [assembly: AssemblyFileVersion("1.1.3.0")]
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | // General Information about an assembly is controlled through the following
5 | // set of attributes. Change these attribute values to modify the information
6 | // associated with an assembly.
7 | [assembly: AssemblyTitle("GenericParsing.UnitTests")]
8 | [assembly: AssemblyDescription("This assembly is used by the GenericParser for unit tests.")]
9 | [assembly: AssemblyConfiguration("")]
10 | [assembly: AssemblyCompany("")]
11 | [assembly: AssemblyProduct("GenericParser")]
12 | [assembly: AssemblyCopyright("Andrew Rissing © 2012")]
13 | [assembly: AssemblyTrademark("")]
14 | [assembly: AssemblyCulture("")]
15 |
16 | // Setting ComVisible to false makes the types in this assembly not visible
17 | // to COM componenets. If you need to access a type in this assembly from
18 | // COM, set the ComVisible attribute to true on that type.
19 | [assembly: ComVisible(false)]
20 |
21 | // The following GUID is for the ID of the typelib if this project is exposed to COM
22 | [assembly: Guid("ad016f99-5066-4baa-80c3-7e1a03c5e173")]
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/AddingExtraColumns.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 | 2
5 | 3
6 |
7 |
8 | g
9 | h
10 | i
11 | j
12 | k
13 | l
14 |
15 |
16 | 7
17 | 8
18 | 9
19 | 10
20 | 11
21 | 12
22 |
23 |
24 | m
25 | n
26 | o
27 | p
28 | q
29 | r
30 |
31 |
32 | 13
33 | 14
34 | 15
35 | 16
36 | 17
37 | 18
38 |
39 |
40 | t
41 | u
42 | v
43 | w
44 | x
45 | y
46 |
47 |
48 | 19
49 | 20
50 | 21
51 | 22
52 | 23
53 | 24
54 |
55 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/AddingExtraColumns.txt:
--------------------------------------------------------------------------------
1 | a,b,c
2 | 1,2,3
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/AddingExtraColumns.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | True
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/BasicEscapedCharacters.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a"
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | 8
29 | ,9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
43 | 13
44 | 14
45 | 15
46 | 16
47 | 17
48 | 18
49 |
50 |
51 | t
52 | u
53 | v
54 | w
55 | x
56 | \vy
57 |
58 |
59 | 19
60 | 20
61 | 21
62 | 22
63 | 23
64 | 24"
65 |
66 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/BasicEscapedCharacters.txt:
--------------------------------------------------------------------------------
1 | "a\"",b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,\,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,\\\vy
8 | 19,20,21,22,23,24\"
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/BasicEscapedCharacters.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 92
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/BasicMaxRows.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | 8
29 | 9
30 | 10
31 | 11
32 | 12
33 |
34 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/BasicMaxRows.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/BasicMaxRows.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 4
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/BasicSkipRows.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | g
4 | h
5 | i
6 | j
7 | k
8 | l
9 |
10 |
11 | 7
12 | 8
13 | 9
14 | 10
15 | 11
16 | 12
17 |
18 |
19 | m
20 | n
21 | o
22 | p
23 | q
24 | r
25 |
26 |
27 | 13
28 | 14
29 | 15
30 | 16
31 | 17
32 | 18
33 |
34 |
35 | t
36 | u
37 | v
38 | w
39 | x
40 | y
41 |
42 |
43 | 19
44 | 20
45 | 21
46 | 22
47 | 23
48 | 24
49 |
50 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/BasicSkipRows.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/BasicSkipRows.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 2
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/BasicTextQualifiers.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | 8
29 | 9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
43 | 13
44 | 14
45 | 15
46 | 16
47 | 17
48 | 18
49 |
50 |
51 | t
52 | u
53 | v
54 | w
55 | x
56 | y
57 |
58 |
59 | 19
60 | 20
61 | 21
62 | 22
63 | 23
64 | 24
65 |
66 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/BasicTextQualifiers.txt:
--------------------------------------------------------------------------------
1 | "a","b ",c," d",e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7," 8 ",9,10,11,12
5 | m,n,o,p,q," r"
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | "19 ",20,21,22,23," 24"
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/BasicTextQualifiers.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ComplexDataDelimiter.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | g
4 | h
5 | i
6 | j
7 | k
8 | l
9 |
10 |
11 | 7
12 | 8
13 | 9-a number
14 | 10
15 | 11
16 | 12
17 |
18 |
19 | m
20 | n
21 | o
22 | p
23 | q
24 | r
25 |
26 |
27 | 13
28 | 14
29 | 15
30 | 16
31 | 17
32 | 18
33 |
34 |
35 | tt
36 | u
37 | v
38 | w
39 | x
40 | y
41 |
42 |
43 | 19
44 | 20
45 | 21
46 | 22
47 | 23
48 | 24
49 |
50 |
51 | a
52 | b
53 | c
54 | d
55 | e
56 | f
57 |
58 |
59 | 1
60 | 2
61 | 3
62 | 4
63 | 5
64 | 6\
65 |
66 |
67 | g
68 | h
69 | i
70 | j
71 | k
72 | l
73 |
74 |
75 | 7
76 | 8
77 | 9
78 | 10
79 | 11
80 | 12
81 |
82 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ComplexDataDelimiter.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 | #This is a comment
4 | a,b,c,d
5 | a,b,c,"\"d",e,"f
6 | , "
7 | 1,2,3,4,5,6
8 | #This is a comment
9 | # This is a comment
10 | g,h,i,j,k,l
11 | 7,8,\9-a number,10,11,12
12 | m,n,o,p,q,r
13 |
14 | #This is a comment
15 |
16 |
17 | 13,14,15,16,17,18
18 | \tt,u,v,w,x,y
19 |
20 | #This is a comment
21 | 19,20,21,22,23,24
22 |
23 | a,b,c,d,e,f
24 | 1,2,3,4,5,6\\
25 | g,h,i,j,k,l
26 | 7,8,9,10,11,12
27 |
28 | a,b,c,d,e,f
29 | 1,2,3,4,5,6
30 | g,h,i,j,k,l
31 | 7,8,9,10,11,12
32 | a,b,c,d,e,f
33 | 1,2,3,4,5,6
34 | g,h,i,j,k,l
35 | 7,8,9,10,11,12
36 | a,b,c,d,e,f
37 | 1,2,3,4,5,6
38 | g,h,i,j,k,l
39 | 7,8,9,10,11,12
40 |
41 |
42 |
43 | #This is a comment
44 |
45 |
46 |
47 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ComplexDataDelimiter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 50
4 | 10
5 | 2
6 | 0
7 | True
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 92
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ComplexDataFixed.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 |
7 |
8 | a
9 | b\\
10 | c
11 |
12 |
13 | a
14 | b
15 | c
16 |
17 |
18 | 5
19 | 6
20 | 7
21 |
22 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ComplexDataFixed.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 | # This is a comment row...
4 | defghijklmno
5 | " a"b\" c
6 |
7 | a b c
8 | 1 2 3
9 |
10 | #Another comment...
11 |
12 | a b c
13 | a b\\ c
14 |
15 | #Another comment...
16 | a b c
17 | 5 6 7
18 | a b c
19 | 8 6 a
20 |
21 | #Another comment...
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ComplexDataFixed.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 4
5 | 4
6 | 4
7 |
8 | 50
9 | 4
10 | 3
11 | 3
12 | True
13 | False
14 | False
15 | True
16 | FixedWidth
17 | False
18 | 34
19 | 92
20 | 35
21 | False
22 | 0
23 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/DifferentColumnDelimiter.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | 8
29 | 9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
43 | 13
44 | 14
45 | 15
46 | 16
47 | 17
48 | 18
49 |
50 |
51 | t
52 | u
53 | v
54 | w
55 | x
56 | y
57 |
58 |
59 | 19
60 | 20
61 | 21
62 | 22
63 | 23
64 | 24
65 |
66 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/DifferentColumnDelimiter.txt:
--------------------------------------------------------------------------------
1 | a|b|c|d|e|f
2 | 1|2|3|4|5|6
3 | g|h|i|j|k|l
4 | 7|8|9|10|11|12
5 | m|n|o|p|q|r
6 | 13|14|15|16|17|18
7 | t|u|v|w|x|y
8 | 19|20|21|22|23|24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/DifferentColumnDelimiter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 124
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/EscapeWithoutTextQualifier.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a\
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | 8
29 | ,9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
43 | 13
44 | 14
45 | 15
46 | 16
47 | 17
48 | 18
49 |
50 |
51 | t
52 | u
53 | v
54 | w
55 | x
56 | \vy
57 |
58 |
59 | 19
60 | 20
61 | 21
62 | 22
63 | 23
64 | 24\
65 |
66 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/EscapeWithoutTextQualifier.txt:
--------------------------------------------------------------------------------
1 | a\\,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,\,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,\\\vy
8 | 19,20,21,22,23,24\\
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/EscapeWithoutTextQualifier.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 92
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/EscapedCharacterAtEndOfFile.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a"
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | 8
29 | ,9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
43 | 13
44 | 14
45 | 15
46 | 16
47 | 17
48 | 18
49 |
50 |
51 | t
52 | u
53 | v
54 | w
55 | x
56 | \vy
57 |
58 |
59 | 19
60 | 20
61 | 21
62 | 22
63 | 23
64 | 24
65 |
66 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/EscapedCharacterAtEndOfFile.txt:
--------------------------------------------------------------------------------
1 | "a\"",b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,\,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,\\\vy
8 | 19,20,21,22,23,24\
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/EscapedCharacterAtEndOfFile.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 92
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/EscapedCharacterAtEndOfRowDelimiter.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | 8
29 | 9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
43 | 13
44 | 14
45 | 15
46 | 16
47 | 17
48 | 18
49 |
50 |
51 | t
52 | u
53 | v
54 | w
55 | x
56 | y
57 |
58 |
59 | 19
60 | 20
61 | 21
62 | 22
63 | 23
64 | 24
65 |
66 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/EscapedCharacterAtEndOfRowDelimiter.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l\
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/EscapedCharacterAtEndOfRowDelimiter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 92
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/EscapedCharacterAtEndOfRowFixedWidth.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 |
6 |
7 | 1
8 | 2
9 |
10 |
11 | g
12 | h
13 |
14 |
15 | 7
16 | 8
17 |
18 |
19 | m
20 | n\
21 |
22 |
23 | 1
24 | 1
25 |
26 |
27 | t
28 | u
29 |
30 |
31 | 1
32 | 2
33 |
34 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/EscapedCharacterAtEndOfRowFixedWidth.txt:
--------------------------------------------------------------------------------
1 | a b
2 | 1 2
3 | g h
4 | 7 8
5 | m n\
6 | 1 1
7 | t u
8 | 1 2
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/EscapedCharacterAtEndOfRowFixedWidth.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 2
5 | 2
6 |
7 | 1024
8 | 0
9 | 0
10 | 2
11 | False
12 | False
13 | False
14 | True
15 | FixedWidth
16 | False
17 | 34
18 | 92
19 | 35
20 | False
21 | 0
22 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ExpectedColumnCountErrorAdding.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 | m
26 | n
27 | o
28 |
29 |
30 | 7
31 | 8
32 | 9
33 | 10
34 | 11
35 | 12
36 |
37 |
38 | m
39 | n
40 | o
41 | p
42 | q
43 | r
44 |
45 |
46 | 13
47 | 14
48 | 15
49 | 16
50 | 17
51 | 18
52 |
53 |
54 | t
55 | u
56 | v
57 | w
58 | x
59 | y
60 |
61 |
62 | 19
63 | 20
64 | 21
65 | 22
66 | 23
67 | 24
68 |
69 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ExpectedColumnCountErrorAdding.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l,m,n,o
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ExpectedColumnCountErrorAdding.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 6
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ExpectedColumnCountErrorRemoving.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 |
24 |
25 | 7
26 | 8
27 | 9
28 | 10
29 | 11
30 | 12
31 |
32 |
33 | m
34 | n
35 | o
36 | p
37 | q
38 | r
39 |
40 |
41 | 13
42 | 14
43 | 15
44 | 16
45 | 17
46 | 18
47 |
48 |
49 | t
50 | u
51 | v
52 | w
53 | x
54 | y
55 |
56 |
57 | 19
58 | 20
59 | 21
60 | 22
61 | 23
62 | 24
63 |
64 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ExpectedColumnCountErrorRemoving.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ExpectedColumnCountErrorRemoving.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 6
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/FirstRowSetsExpectedColumnCountWithHeaderRow.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 | 2
5 | 3
6 | 4
7 | 5
8 | 6
9 |
10 |
11 | g
12 | h
13 | i
14 | j
15 | k
16 | l
17 |
18 |
19 | 7
20 | 8
21 | 9
22 | 10
23 | 11
24 | 12
25 |
26 |
27 | m
28 | n
29 | o
30 | p
31 | q
32 | r
33 |
34 |
35 | 13
36 | 14
37 | 15
38 | 16
39 | 17
40 | 18
41 |
42 |
43 | t
44 | u
45 | v
46 | w
47 | x
48 | y
49 |
50 |
51 | 19
52 | 20
53 | 21
54 | 22
55 | 23
56 | 24
57 |
58 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/FirstRowSetsExpectedColumnCountWithHeaderRow.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/FirstRowSetsExpectedColumnCountWithHeaderRow.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | True
8 | False
9 | False
10 | True
11 | Delimited
12 | True
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/FirstRowSetsExpectedColumnCountWithHeaderRowError.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 | 2
5 | 3
6 | 4
7 | 5
8 | 6
9 |
10 |
11 | g
12 | h
13 | i
14 | j
15 | k
16 | l
17 |
18 |
19 | 7
20 | 8
21 | 9
22 | 10
23 | 11
24 | 12
25 |
26 |
27 | m
28 | n
29 | o
30 | p
31 | q
32 | r
33 |
34 |
35 | 13
36 | 14
37 | 15
38 | 16
39 | 17
40 | 18
41 |
42 |
43 | t
44 | u
45 | v
46 | w
47 | x
48 | y
49 |
50 |
51 | 19
52 | 20
53 | 21
54 | 22
55 | 23
56 | 24
57 |
58 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/FirstRowSetsExpectedColumnCountWithHeaderRowError.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f,Error
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/FirstRowSetsExpectedColumnCountWithHeaderRowError.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | True
8 | False
9 | False
10 | True
11 | Delimited
12 | True
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/FirstRowSetsExpectedColumnCountWithoutHeaderRow.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 | 2
5 | 3
6 | 4
7 | 5
8 | 6
9 |
10 |
11 | g
12 | h
13 | i
14 | j
15 | k
16 | l
17 |
18 |
19 | 7
20 | 8
21 | 9
22 | 10
23 | 11
24 | 12
25 |
26 |
27 | m
28 | n
29 | o
30 | p
31 | q
32 | r
33 |
34 |
35 | 13
36 | 14
37 | 15
38 | 16
39 | 17
40 | 18
41 |
42 |
43 | t
44 | u
45 | v
46 | w
47 | x
48 | y
49 |
50 |
51 | 19
52 | 20
53 | 21
54 | 22
55 | 23
56 | 24
57 |
58 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/FirstRowSetsExpectedColumnCountWithoutHeaderRow.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/FirstRowSetsExpectedColumnCountWithoutHeaderRow.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 1
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | True
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/FirstRowSetsExpectedColumnCountWithoutHeaderRowError.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | 8
29 | 9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
43 | 13
44 | 14
45 | 15
46 | 16
47 | 17
48 | 18
49 |
50 |
51 | t
52 | u
53 | v
54 | w
55 | x
56 | y
57 |
58 |
59 | 19
60 | 20
61 | 21
62 | 22
63 | 23
64 | 24
65 |
66 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/FirstRowSetsExpectedColumnCountWithoutHeaderRowError.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12,
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/FirstRowSetsExpectedColumnCountWithoutHeaderRowError.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | True
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/HandlingDuplicateColumnNames.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 | 2
5 | 3
6 | 4
7 | 5
8 | 6
9 |
10 |
11 | g
12 | h
13 | i
14 | j
15 | k
16 | l
17 |
18 |
19 | 7
20 | 8
21 | 9
22 | 10
23 | 11
24 | 12
25 |
26 |
27 | m
28 | n
29 | o
30 | p
31 | q
32 | r
33 |
34 |
35 | 13
36 | 14
37 | 15
38 | 16
39 | 17
40 | 18
41 |
42 |
43 | t
44 | u
45 | v
46 | w
47 | x
48 | y
49 |
50 |
51 | 19
52 | 20
53 | 21
54 | 22
55 | 23
56 | 24
57 |
58 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/HandlingDuplicateColumnNames.txt:
--------------------------------------------------------------------------------
1 | a,b,a,b,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/HandlingDuplicateColumnNames.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | True
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/IncludeLineNumber.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 3
4 | 1
5 | 2
6 | 3
7 | 4
8 | 5
9 | 6
10 |
11 |
12 | 4
13 | g
14 | h
15 | i
16 | j
17 | k
18 | l
19 |
20 |
21 | 5
22 | 7
23 | 8
24 | 9
25 | 10
26 | 11
27 | 12
28 |
29 |
30 | 7
31 | m
32 | n
33 | o
34 | p
35 | q
36 | r
37 |
38 |
39 | 8
40 | 13
41 | 14
42 | 15
43 | 16
44 | 17
45 | 18
46 |
47 |
48 | 9
49 | t
50 | u
51 | v
52 | w
53 | x
54 | y
55 |
56 |
57 | 10
58 | 19
59 | 20
60 | 21
61 | 22
62 | 23
63 | 24
64 |
65 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/IncludeLineNumber.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | #Comment #1
3 | 1,2,3,4,5,6
4 | g,h,i,j,k,l
5 | 7,8,9,10,11,12
6 | #Comment #2
7 | m,n,o,p,q,r
8 | 13,14,15,16,17,18
9 | t,u,v,w,x,y
10 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/IncludeLineNumber.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | True
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | True
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/MaxRowsIgnoresCommentsHeader.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 | 2
5 | 3
6 | 4
7 | 5
8 | 6
9 |
10 |
11 | g
12 | h
13 | i
14 | j
15 | k
16 | l
17 |
18 |
19 | 7
20 | 8
21 | 9
22 | 10
23 | 11
24 | 12
25 |
26 |
27 | m
28 | n
29 | o
30 | p
31 | q
32 | r
33 |
34 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/MaxRowsIgnoresCommentsHeader.txt:
--------------------------------------------------------------------------------
1 | #This shouldn't cause any problems
2 | # I can only test it to see....
3 | a,b,c,d,e,f
4 | 1,2,3,4,5,6
5 | g,h,i,j,k,l
6 | #Another comment in the middle.
7 | 7,8,9,10,11,12
8 | m,n,o,p,q,r
9 | 13,14,15,16,17,18
10 | t,u,v,w,x,y
11 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/MaxRowsIgnoresCommentsHeader.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 4
5 | 0
6 | 0
7 | True
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsDelimiter.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 | a
5 | b
6 | c
7 | d
8 | e
9 | f
10 |
11 |
12 | 2
13 |
14 |
15 | 3
16 | 1
17 | 2
18 | 3
19 | 4
20 | 5
21 | 6
22 |
23 |
24 | 4
25 |
26 |
27 | 5
28 | g
29 | h
30 | i
31 | j
32 | k
33 | l
34 |
35 |
36 | 6
37 |
38 |
39 | 7
40 | 7
41 | 8
42 | 9
43 | 10
44 | 11
45 | 12
46 |
47 |
48 | 8
49 |
50 |
51 | 9
52 | m
53 | n
54 | o
55 | p
56 | q
57 | r
58 |
59 |
60 | 10
61 |
62 |
63 | 11
64 |
65 |
66 | 12
67 | 13
68 | 14
69 | 15
70 | 16
71 | 17
72 | 18
73 |
74 |
75 | 13
76 |
77 |
78 | 14
79 | t
80 | u
81 | v
82 | w
83 | x
84 | y
85 |
86 |
87 | 15
88 |
89 |
90 | 16
91 | 19
92 | 20
93 | 21
94 | 22
95 | 23
96 | 24
97 |
98 |
99 | 17
100 |
101 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsDelimiter.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 |
3 | 1,2,3,4,5,6
4 |
5 | g,h,i,j,k,l
6 |
7 | 7,8,9,10,11,12
8 |
9 | m,n,o,p,q,r
10 |
11 |
12 | 13,14,15,16,17,18
13 |
14 | t,u,v,w,x,y
15 |
16 | 19,20,21,22,23,24
17 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsDelimiter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | False
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | True
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsDelimiterWithHeaderWithFileRowNumber.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 2
4 |
5 |
6 | 3
7 | 1
8 | 2
9 | 3
10 | 4
11 | 5
12 | 6
13 |
14 |
15 | 4
16 |
17 |
18 | 5
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 6
28 |
29 |
30 | 7
31 | 7
32 | 8
33 | 9
34 | 10
35 | 11
36 | 12
37 |
38 |
39 | 8
40 |
41 |
42 | 9
43 | m
44 | n
45 | o
46 | p
47 | q
48 | r
49 |
50 |
51 | 10
52 |
53 |
54 | 11
55 |
56 |
57 | 12
58 | 13
59 | 14
60 | 15
61 | 16
62 | 17
63 | 18
64 |
65 |
66 | 13
67 |
68 |
69 | 14
70 | t
71 | u
72 | v
73 | w
74 | x
75 | y
76 |
77 |
78 | 15
79 |
80 |
81 | 16
82 | 19
83 | 20
84 | 21
85 | 22
86 | 23
87 | 24
88 |
89 |
90 | 17
91 |
92 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsDelimiterWithHeaderWithFileRowNumber.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 |
3 | 1,2,3,4,5,6
4 |
5 | g,h,i,j,k,l
6 |
7 | 7,8,9,10,11,12
8 |
9 | m,n,o,p,q,r
10 |
11 |
12 | 13,14,15,16,17,18
13 |
14 | t,u,v,w,x,y
15 |
16 | 19,20,21,22,23,24
17 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsDelimiterWithHeaderWithFileRowNumber.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | True
8 | False
9 | False
10 | False
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | True
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsDelimiterWithHeaderWithoutFileRowNumber.out:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 1
5 | 2
6 | 3
7 | 4
8 | 5
9 | 6
10 |
11 |
12 |
13 | g
14 | h
15 | i
16 | j
17 | k
18 | l
19 |
20 |
21 |
22 | 7
23 | 8
24 | 9
25 | 10
26 | 11
27 | 12
28 |
29 |
30 |
31 | m
32 | n
33 | o
34 | p
35 | q
36 | r
37 |
38 |
39 |
40 |
41 | 13
42 | 14
43 | 15
44 | 16
45 | 17
46 | 18
47 |
48 |
49 |
50 | t
51 | u
52 | v
53 | w
54 | x
55 | y
56 |
57 |
58 |
59 | 19
60 | 20
61 | 21
62 | 22
63 | 23
64 | 24
65 |
66 |
67 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsDelimiterWithHeaderWithoutFileRowNumber.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 |
3 | 1,2,3,4,5,6
4 |
5 | g,h,i,j,k,l
6 |
7 | 7,8,9,10,11,12
8 |
9 | m,n,o,p,q,r
10 |
11 |
12 | 13,14,15,16,17,18
13 |
14 | t,u,v,w,x,y
15 |
16 | 19,20,21,22,23,24
17 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsDelimiterWithHeaderWithoutFileRowNumber.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | True
8 | False
9 | False
10 | False
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsDelimiterWithoutFileRowNumber.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 |
12 | 1
13 | 2
14 | 3
15 | 4
16 | 5
17 | 6
18 |
19 |
20 |
21 | g
22 | h
23 | i
24 | j
25 | k
26 | l
27 |
28 |
29 |
30 | 7
31 | 8
32 | 9
33 | 10
34 | 11
35 | 12
36 |
37 |
38 |
39 | m
40 | n
41 | o
42 | p
43 | q
44 | r
45 |
46 |
47 |
48 |
49 | 13
50 | 14
51 | 15
52 | 16
53 | 17
54 | 18
55 |
56 |
57 |
58 | t
59 | u
60 | v
61 | w
62 | x
63 | y
64 |
65 |
66 |
67 | 19
68 | 20
69 | 21
70 | 22
71 | 23
72 | 24
73 |
74 |
75 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsDelimiterWithoutFileRowNumber.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 |
3 | 1,2,3,4,5,6
4 |
5 | g,h,i,j,k,l
6 |
7 | 7,8,9,10,11,12
8 |
9 | m,n,o,p,q,r
10 |
11 |
12 | 13,14,15,16,17,18
13 |
14 | t,u,v,w,x,y
15 |
16 | 19,20,21,22,23,24
17 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsDelimiterWithoutFileRowNumber.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | False
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsFixedWidth.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 | a
5 | b
6 |
7 |
8 | 2
9 |
10 |
11 | 3
12 | 1
13 | 2
14 |
15 |
16 | 4
17 |
18 |
19 | 5
20 | g
21 | h
22 |
23 |
24 | 6
25 |
26 |
27 | 7
28 | 7
29 | 8
30 |
31 |
32 | 8
33 |
34 |
35 | 9
36 | m
37 | n
38 |
39 |
40 | 10
41 |
42 |
43 | 11
44 |
45 |
46 | 12
47 | 1
48 | 1
49 |
50 |
51 | 13
52 |
53 |
54 | 14
55 | t
56 | u
57 |
58 |
59 | 15
60 |
61 |
62 | 16
63 | 1
64 | 2
65 |
66 |
67 | 17
68 |
69 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsFixedWidth.txt:
--------------------------------------------------------------------------------
1 | a b
2 |
3 | 1 2
4 |
5 | g h
6 |
7 | 7 8
8 |
9 | m n
10 |
11 |
12 | 1 1
13 |
14 | t u
15 |
16 | 1 2
17 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/NotSkippingEmptyRowsFixedWidth.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 2
5 | 2
6 |
7 | 1024
8 | 0
9 | 0
10 | 2
11 | False
12 | False
13 | False
14 | False
15 | FixedWidth
16 | False
17 | 34
18 | 0
19 | 35
20 | True
21 | 0
22 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ReadLastRowWithRowDelimiter.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | 8
29 | 9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
43 | 13
44 | 14
45 | 15
46 | 16
47 | 17
48 | 18
49 |
50 |
51 | t
52 | u
53 | v
54 | w
55 | x
56 | y
57 |
58 |
59 | 19
60 | 20
61 | 21
62 | 22
63 | 23
64 | 24
65 |
66 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ReadLastRowWithRowDelimiter.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
9 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ReadLastRowWithRowDelimiter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ReadLastRowWithoutRowDelimiter.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | 8
29 | 9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
43 | 13
44 | 14
45 | 15
46 | 16
47 | 17
48 | 18
49 |
50 |
51 | t
52 | u
53 | v
54 | w
55 | x
56 | y
57 |
58 |
59 | 19
60 | 20
61 | 21
62 | 22
63 | 23
64 | 24
65 |
66 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ReadLastRowWithoutRowDelimiter.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ReadLastRowWithoutRowDelimiter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ReadingInHeader.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 | 2
5 | 3
6 | 4
7 | 5
8 | 6
9 |
10 |
11 | g
12 | h
13 | i
14 | j
15 | k
16 | l
17 |
18 |
19 | 7
20 | 8
21 | 9
22 | 10
23 | 11
24 | 12
25 |
26 |
27 | m
28 | n
29 | o
30 | p
31 | q
32 | r
33 |
34 |
35 | 13
36 | 14
37 | 15
38 | 16
39 | 17
40 | 18
41 |
42 |
43 | t
44 | u
45 | v
46 | w
47 | x
48 | y
49 |
50 |
51 | 19
52 | 20
53 | 21
54 | 22
55 | 23
56 | 24
57 |
58 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ReadingInHeader.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ReadingInHeader.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | True
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ReadingInHeaderAfterComments.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 | 2
5 | 3
6 | 4
7 | 5
8 | 6
9 |
10 |
11 | g
12 | h
13 | i
14 | j
15 | k
16 | l
17 |
18 |
19 | 7
20 | 8
21 | 9
22 | 10
23 | 11
24 | 12
25 |
26 |
27 | m
28 | n
29 | o
30 | p
31 | q
32 | r
33 |
34 |
35 | 13
36 | 14
37 | 15
38 | 16
39 | 17
40 | 18
41 |
42 |
43 | t
44 | u
45 | v
46 | w
47 | x
48 | y
49 |
50 |
51 | 19
52 | 20
53 | 21
54 | 22
55 | 23
56 | 24
57 |
58 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ReadingInHeaderAfterComments.txt:
--------------------------------------------------------------------------------
1 | #This shouldn't cause any problems
2 | # I can only test it to see....
3 | a,b,c,d,e,f
4 | 1,2,3,4,5,6
5 | g,h,i,j,k,l
6 | 7,8,9,10,11,12
7 | m,n,o,p,q,r
8 | 13,14,15,16,17,18
9 | t,u,v,w,x,y
10 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/ReadingInHeaderAfterComments.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | True
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/RowWithoutColumnDelimiter.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | abcdef
4 |
5 |
6 | 123456
7 |
8 |
9 | ghijkl
10 |
11 |
12 | 789101112
13 |
14 |
15 | mnopqr
16 |
17 |
18 | 131415161718
19 |
20 |
21 | tuvwxy
22 |
23 |
24 | 192021222324
25 |
26 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/RowWithoutColumnDelimiter.txt:
--------------------------------------------------------------------------------
1 | abcdef
2 | 123456
3 | ghijkl
4 | 789101112
5 | mnopqr
6 | 131415161718
7 | tuvwxy
8 | 192021222324
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/RowWithoutColumnDelimiter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SimpleDelimiter.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | 8
29 | 9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
43 | 13
44 | 14
45 | 15
46 | 16
47 | 17
48 | 18
49 |
50 |
51 | t
52 | u
53 | v
54 | w
55 | x
56 | y
57 |
58 |
59 | 19
60 | 20
61 | 21
62 | 22
63 | 23
64 | 24
65 |
66 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SimpleDelimiter.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SimpleDelimiter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SimpleDelimiterWithControlCharacters.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1
4 | 2
5 | 3
6 | 4
7 | 5
8 | 6
9 |
10 |
11 | g
12 | h
13 | i
14 | j
15 | k
16 | l
17 |
18 |
19 | 7
20 | 8
21 | 9
22 | 10
23 | 11
24 | 12
25 |
26 |
27 | m
28 | n
29 | o
30 | p
31 | q
32 | r
33 |
34 |
35 | 13
36 | 14
37 | 15
38 | 16
39 | 17
40 | 18
41 |
42 |
43 | t
44 | u
45 | v
46 | w
47 | x
48 | y
49 |
50 |
51 | 19
52 | 20
53 | 21
54 | 22
55 | 23
56 | 24
57 |
58 |
59 |
60 |
61 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SimpleDelimiterWithControlCharacters.txt:
--------------------------------------------------------------------------------
1 | a,b ,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i ,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p ,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
9 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SimpleDelimiterWithControlCharacters.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | True
8 | False
9 | True
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SimpleFixedWidth.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 |
6 |
7 | 1
8 | 2
9 |
10 |
11 | g
12 | h
13 |
14 |
15 | 7
16 | 8
17 |
18 |
19 | m
20 | n
21 |
22 |
23 | 1
24 | 1
25 |
26 |
27 | t
28 | u
29 |
30 |
31 | 1
32 | 2
33 |
34 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SimpleFixedWidth.txt:
--------------------------------------------------------------------------------
1 | a b
2 | 1 2
3 | g h
4 | 7 8
5 | m n
6 | 1 1
7 | t u
8 | 1 2
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SimpleFixedWidth.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 2
5 | 2
6 |
7 | 1024
8 | 0
9 | 0
10 | 2
11 | False
12 | False
13 | False
14 | True
15 | FixedWidth
16 | False
17 | 34
18 | 0
19 | 35
20 | False
21 | 0
22 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingAllRows.out:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingAllRows.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingAllRows.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 10
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingBeginningAndEndingRows.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 7
4 | 8
5 | 9
6 | 10
7 | 11
8 | 12
9 |
10 |
11 | m
12 | n
13 | o
14 | p
15 | q
16 | r
17 |
18 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingBeginningAndEndingRows.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingBeginningAndEndingRows.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 3
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 3
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingBeginningAndEndingRowsAll.out:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingBeginningAndEndingRowsAll.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingBeginningAndEndingRowsAll.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 30
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 30
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingComments.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 2
4 | a
5 | b
6 | c
7 | d
8 | e
9 | f
10 |
11 |
12 | 4
13 | 1
14 | 2
15 | 3
16 | 4
17 | 5
18 | 6
19 |
20 |
21 | 5
22 | g
23 | h
24 | i
25 | j
26 | k
27 | l
28 |
29 |
30 | 6
31 | 7
32 | 8
33 | 9
34 | 10
35 | 11
36 | 12
37 |
38 |
39 | 7
40 | m
41 | n
42 | o
43 | p
44 | q
45 | r
46 |
47 |
48 | 10
49 | 13
50 | 14
51 | 15
52 | 16
53 | 17
54 | 18
55 |
56 |
57 | 11
58 | t
59 | u
60 | v
61 | w
62 | x
63 | y
64 |
65 |
66 | 13
67 | 19
68 | 20
69 | 21
70 | 22
71 | 23
72 | 24
73 |
74 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingComments.txt:
--------------------------------------------------------------------------------
1 | # This is a simple comment which should not be read in.
2 | a,b,c,d,e,f
3 | #Yet another comment that shouldn't be read in.
4 | 1,2,3,4,5,6
5 | g,h,i,j,k,l
6 | 7,8,9,10,11,12
7 | m,n,o,p,q,r
8 | # Comment.
9 | # Comment again.
10 | 13,14,15,16,17,18
11 | t,u,v,w,x,y
12 | #Comment...
13 | 19,20,21,22,23,24
14 | #Comment yet again...
15 | #Hey, a comment after a comment.
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingComments.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | True
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEmptyRowsWithDelimiter.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 3
4 | a
5 | b
6 | c
7 | d
8 | e
9 | f
10 |
11 |
12 | 4
13 | 1
14 | 2
15 | 3
16 | 4
17 | 5
18 | 6
19 |
20 |
21 | 6
22 | g
23 | h
24 | i
25 | j
26 | k
27 | l
28 |
29 |
30 | 7
31 | 7
32 | 8
33 | 9
34 | 10
35 | 11
36 | 12
37 |
38 |
39 | 9
40 | m
41 | n
42 | o
43 | p
44 | q
45 | r
46 |
47 |
48 | 10
49 | 13
50 | 14
51 | 15
52 | 16
53 | 17
54 | 18
55 |
56 |
57 | 13
58 | t
59 | u
60 | v
61 | w
62 | x
63 | y
64 |
65 |
66 | 14
67 | 19
68 | 20
69 | 21
70 | 22
71 | 23
72 | 24
73 |
74 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEmptyRowsWithDelimiter.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 | a,b,c,d,e,f
4 | 1,2,3,4,5,6
5 |
6 | g,h,i,j,k,l
7 | 7,8,9,10,11,12
8 |
9 | m,n,o,p,q,r
10 | 13,14,15,16,17,18
11 |
12 |
13 | t,u,v,w,x,y
14 | 19,20,21,22,23,24
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEmptyRowsWithDelimiter.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | True
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEmptyRowsWithFixedWidth.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | 3
4 | a
5 | b
6 | c
7 | d
8 | e
9 | f
10 |
11 |
12 | 4
13 | 1
14 | 2
15 | 3
16 | 4
17 | 5
18 | 6
19 |
20 |
21 | 6
22 | g
23 | h
24 | i
25 | j
26 | k
27 | l
28 |
29 |
30 | 7
31 | 7
32 | 8
33 | 9
34 | 10
35 | 11
36 | 12
37 |
38 |
39 | 9
40 | m
41 | n
42 | o
43 | p
44 | q
45 | r
46 |
47 |
48 | 10
49 | 13
50 | 14
51 | 15
52 | 16
53 | 17
54 | 18
55 |
56 |
57 | 13
58 | t
59 | u
60 | v
61 | w
62 | x
63 | y
64 |
65 |
66 | 14
67 | 19
68 | 20
69 | 21
70 | 22
71 | 23
72 | 24
73 |
74 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEmptyRowsWithFixedWidth.txt:
--------------------------------------------------------------------------------
1 |
2 |
3 | a b c d e f
4 | 1 2 3 4 5 6
5 |
6 | g h i j k l
7 | 7 8 9 101112
8 |
9 | m n o p q r
10 | 131415161718
11 |
12 |
13 | t u v w x y
14 | 192021222324
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEmptyRowsWithFixedWidth.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 2
5 | 2
6 | 2
7 | 2
8 | 2
9 | 2
10 |
11 | 1024
12 | 0
13 | 0
14 | 6
15 | False
16 | False
17 | False
18 | True
19 | FixedWidth
20 | False
21 | 34
22 | 0
23 | 35
24 | True
25 | 0
26 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEndingRows.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | 8
29 | 9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEndingRows.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEndingRows.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 3
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEndingRowsAll.out:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEndingRowsAll.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEndingRowsAll.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 30
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEndingRowsExactlyAll.out:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEndingRowsExactlyAll.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingEndingRowsExactlyAll.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 8
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingRowsAtEndOfBuffer.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | g
4 | h
5 | i
6 | j
7 | k
8 | l
9 |
10 |
11 | 6
12 | 5
13 | 4
14 | 3
15 | 2
16 | 1
17 |
18 |
19 | m
20 | n
21 | o
22 | p
23 | q
24 | r
25 |
26 |
27 | 1
28 | 3
29 | 5
30 | 7
31 | 9
32 | 2
33 |
34 |
35 | t
36 | u
37 | v
38 | w
39 | x
40 | y
41 |
42 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingRowsAtEndOfBuffer.txt:
--------------------------------------------------------------------------------
1 | a,b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 6,5,4,3,2,1
5 | m,n,o,p,q,r
6 | 1,3,5,7,9,2
7 | t,u,v,w,x,y
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/SkippingRowsAtEndOfBuffer.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 13
4 | 0
5 | 2
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TextQualifierBeginningAndEnd.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b"
5 | c"c
6 | d""d
7 | e"e
8 | ""f
9 |
10 |
11 | g,h,i",j,k,l
12 |
13 |
14 | m
15 | n"op""qr
16 | s"tu""vw
17 | "x""""""
18 |
19 |
20 | y
21 | z
22 |
23 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TextQualifierBeginningAndEnd.txt:
--------------------------------------------------------------------------------
1 | a,b",c"c,d""d,"e""e",""f
2 | "g,h,i"",j,k,l"
3 | "m",n\"op\"\"qr,"s\"tu\"\"vw",\"x""""""
4 | y,z
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TextQualifierBeginningAndEnd.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 92
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TextQualifierNotClosedAtEnd.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | , d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | ,8,
29 | 9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
43 | 13
44 | 14
45 | 15
46 | 16
47 | 17
48 | 18
49 |
50 |
51 | t
52 | u
53 | v
54 | w
55 | x
56 | y
57 |
58 |
59 | 19 ,
60 | 20
61 | 21
62 | 22
63 | 23
64 | "
65 | 24
66 |
67 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TextQualifierNotClosedAtEnd.txt:
--------------------------------------------------------------------------------
1 | "a","b ",c," , d",e,f
2 | 1,2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7," ,8, ",9,10,11,12
5 | m,n,o,p,q," r"
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | "19 , ",20,21,22,23,"
9 | 24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TextQualifierNotClosedAtEnd.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TextQualifierWithoutEscape.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | 8
29 | 9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
43 | 13
44 | 14
45 | 15
46 | 16
47 | 17
48 | 18
49 |
50 |
51 | t
52 | u
53 | v
54 | w
55 | x
56 | y
57 |
58 |
59 | 19
60 | 20
61 | 21
62 | 22
63 | 23
64 | 24
65 |
66 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TextQualifierWithoutEscape.txt:
--------------------------------------------------------------------------------
1 | "a",b,c,d,e,f
2 | 1,2,3,4,5,6
3 | g,h,"i",j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,p,q,r
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TextQualifierWithoutEscape.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TextQualifiersWithDelimiters.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | , d
7 | e
8 | f
9 |
10 |
11 | "
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | ,8,
29 | 9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
43 | 13
44 | 14
45 | 15
46 | 16
47 | 17
48 | 18
49 |
50 |
51 | t
52 | u
53 | v
54 | w
55 | x
56 | y
57 |
58 |
59 | 19 ,
60 | 20
61 | 21
62 | 22
63 | 23
64 |
65 | 24
66 |
67 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TextQualifiersWithDelimiters.txt:
--------------------------------------------------------------------------------
1 | "a","b ",c," , d",e,f
2 | """",2,3,4,5,6
3 | g,h,i,j,k,l
4 | 7," ,8, ",9,10,11,12
5 | m,n,o,p,q," r"
6 | 13,14,15,16,17,18
7 | t,u,v,w,x,y
8 | "19 , ",20,21,22,23,"
9 | 24"
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TextQualifiersWithDelimiters.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TrimmingResults.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | a
4 | b
5 | c
6 | d
7 | e
8 | f
9 |
10 |
11 | 1
12 | 2
13 | 3
14 | 4
15 | 5
16 | 6
17 |
18 |
19 | g
20 | h
21 | i
22 | j
23 | k
24 | l
25 |
26 |
27 | 7
28 | 8
29 | 9
30 | 10
31 | 11
32 | 12
33 |
34 |
35 | m
36 | n
37 | o
38 | p
39 | q
40 | r
41 |
42 |
43 | 13
44 | 14
45 | 15
46 | 16
47 | 17
48 | 18
49 |
50 |
51 | t
52 | u
53 | v
54 | w
55 | x
56 | y
57 |
58 |
59 | 19
60 | 20
61 | 21
62 | 22
63 | 23
64 | 24
65 |
66 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TrimmingResults.txt:
--------------------------------------------------------------------------------
1 | a ,b,c,d,e,f
2 | 1, 2,3 ,4,5,6
3 | g,h,i,j,k,l
4 | 7,8,9,10,11,12
5 | m,n,o,"p ",q,r
6 | 13,14,15,16, 17,18
7 | t,u,v,w ,x,y
8 | 19,20,21,22,23,24
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/TrimmingResults.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | True
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/UnicodeSupported.out:
--------------------------------------------------------------------------------
1 |
2 |
3 | между
4 | tölvuiðnaðarins
5 | ũΩ₤
6 | používat
7 |
8 |
9 | různá
10 | čísla
11 | pro
12 | członkowskich
13 |
14 |
15 | rozumieją
16 | přiřazuje
17 | gemeinnützige
18 | är också
19 |
20 |
21 | sprachunabhängig
22 | that's all
23 | for
24 | now
25 |
26 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/UnicodeSupported.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/GenericParser_src/UnitTests/TestData/UnicodeSupported.txt
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/UnicodeSupported.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | 1024
4 | 0
5 | 0
6 | 0
7 | False
8 | False
9 | False
10 | True
11 | Delimited
12 | False
13 | 44
14 | 34
15 | 0
16 | 35
17 | False
18 | 0
19 |
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/XmlTest.out:
--------------------------------------------------------------------------------
1 | a b 1 2 g h 7 8 m n 1 1 t u 1 2
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/XmlTest.txt:
--------------------------------------------------------------------------------
1 | a b
2 | 1 2
3 | g h
4 | 7 8
5 | m n
6 | 1 1
7 | t u
8 | 1 2
--------------------------------------------------------------------------------
/src/GenericParser_src/UnitTests/TestData/XmlTest.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 2
5 | 2
6 |
7 | 1024
8 | 0
9 | 0
10 | 2
11 | False
12 | False
13 | False
14 | True
15 | FixedWidth
16 | False
17 | 34
18 | 0
19 | 35
20 | False
21 | 0
22 |
--------------------------------------------------------------------------------
/src/GenericParser_src/localtestrun.testrunconfig:
--------------------------------------------------------------------------------
1 |
2 |
3 | This is a default test run configuration for a local test run.
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/ChangedRow.xml:
--------------------------------------------------------------------------------
1 |
2 | John
3 | Susan
4 | Anne
5 | Andrea
6 | Smith
7 | George
8 | West
9 | Jones
10 | AZ
11 |
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/ConnectionConfigs/IDataConnectionConfiguration.cs:
--------------------------------------------------------------------------------
1 | namespace SQLServerForExcel_Addin
2 | {
3 | public interface IDataConnectionConfiguration
4 | {
5 | string GetSelectedSource();
6 | void SaveSelectedSource(string provider);
7 |
8 | string GetSelectedProvider();
9 | void SaveSelectedProvider(string provider);
10 | }
11 | }
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/DatabaseExplorerTaskPane.cs:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/DatabaseExplorerTaskPane.cs
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/Extensions/EnurableExtensions.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 |
5 | namespace SQLServerForExcel_Addin.Extensions
6 | {
7 | public static class EnurableExtensions
8 | {
9 | public static IEnumerable Shuffle(this IEnumerable source, Random rng)
10 | {
11 | T[] elements = source.ToArray();
12 | for (int i = elements.Length - 1; i >= 0; i--)
13 | {
14 | // Swap element "i" with a random earlier element it (or itself)
15 | // ... except we don't really need to swap it fully, as we can
16 | // return it immediately, and afterwards it's irrelevant.
17 | int swapIndex = rng.Next(i + 1);
18 | yield return elements[swapIndex];
19 | elements[swapIndex] = elements[i];
20 | }
21 | }
22 | }
23 | }
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/Interops/Microsoft.Office.Interop.Excel.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/Interops/Microsoft.Office.Interop.Excel.dll
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/Interops/Microsoft.Vbe.Interop.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/Interops/Microsoft.Vbe.Interop.dll
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/Interops/Office.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/Interops/Office.dll
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/Loader/adxloader.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/Loader/adxloader.dll
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/Loader/adxloader.dll.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/Loader/adxloader64.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/Loader/adxloader64.dll
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.InteropServices;
3 |
4 | //
5 | // General Information about an assembly is controlled through the following
6 | // set of attributes. Change these attribute values to modify the information
7 | // associated with an assembly.
8 | //
9 | [assembly: AssemblyTitle("SQLServerForExcel_Addin")]
10 | [assembly: AssemblyDescription("SQLServerForExcel_Addin")]
11 | [assembly: AssemblyConfiguration("")]
12 | [assembly: AssemblyCompany("Default Company")]
13 | [assembly: AssemblyProduct("SQLServerForExcel_Addin")]
14 | [assembly: AssemblyCopyright("")]
15 | [assembly: AssemblyTrademark("")]
16 | [assembly: AssemblyCulture("")]
17 |
18 | //
19 | // Version information for an assembly consists of the following four values:
20 | //
21 | // Major Version
22 | // Minor Version
23 | // Revision
24 | // Build Number
25 | //
26 | // You can specify all the value or you can default the Revision and Build Numbers
27 | // by using the * as shown below:
28 |
29 | [assembly: AssemblyVersion("0.0.1.0")]
30 |
31 | //
32 | // In order to sign your assembly you must specify a key to use. Refer to the
33 | // Microsoft .NET Framework documentation for more information on assembly signing.
34 | //
35 | // Use the attributes below to control which key is used for signing.
36 | //
37 | // Notes:
38 | // (*) If no key is specified - the assembly cannot be signed.
39 | // (*) KeyName refers to a key that has been installed in the Crypto Service
40 | // Provider (CSP) on your machine.
41 | // (*) If the key file and a key name attributes are both specified, the
42 | // following processing occurs:
43 | // (1) If the KeyName can be found in the CSP - that key is used.
44 | // (2) If the KeyName does not exist and the KeyFile does exist, the key
45 | // in the file is installed into the CSP and used.
46 | // (*) Delay Signing is an advanced option - see the Microsoft .NET Framework
47 | // documentation for more information on this.
48 | //
49 | [assembly: ComVisible(true)]
50 |
51 | [assembly: AssemblyFileVersionAttribute("0.0.1")]
52 |
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.42000
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace SQLServerForExcel_Addin.Properties {
12 | using System;
13 |
14 |
15 | ///
16 | /// A strongly-typed resource class, for looking up localized strings, etc.
17 | ///
18 | // This class was auto-generated by the StronglyTypedResourceBuilder
19 | // class via a tool like ResGen or Visual Studio.
20 | // To add or remove a member, edit your .ResX file then rerun ResGen
21 | // with the /str option, or rebuild your VS project.
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources {
26 |
27 | private static global::System.Resources.ResourceManager resourceMan;
28 |
29 | private static global::System.Globalization.CultureInfo resourceCulture;
30 |
31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
32 | internal Resources() {
33 | }
34 |
35 | ///
36 | /// Returns the cached ResourceManager instance used by this class.
37 | ///
38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
39 | internal static global::System.Resources.ResourceManager ResourceManager {
40 | get {
41 | if (object.ReferenceEquals(resourceMan, null)) {
42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SQLServerForExcel_Addin.Properties.Resources", typeof(Resources).Assembly);
43 | resourceMan = temp;
44 | }
45 | return resourceMan;
46 | }
47 | }
48 |
49 | ///
50 | /// Overrides the current thread's CurrentUICulture property for all
51 | /// resource lookups using this strongly typed resource class.
52 | ///
53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
54 | internal static global::System.Globalization.CultureInfo Culture {
55 | get {
56 | return resourceCulture;
57 | }
58 | set {
59 | resourceCulture = value;
60 | }
61 | }
62 |
63 | ///
64 | /// Looks up a localized resource of type System.Drawing.Bitmap.
65 | ///
66 | internal static System.Drawing.Bitmap SSMS {
67 | get {
68 | object obj = ResourceManager.GetObject("SSMS", resourceCulture);
69 | return ((System.Drawing.Bitmap)(obj));
70 | }
71 | }
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/Resources/SSMS.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/Resources/SSMS.ico
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.Addin.snk:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/SQLServerForExcel.Addin.snk
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/Product.wxs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | 2]]>
48 | 2]]>
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/Resources/WiXDefBannerBitmap.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/Resources/WiXDefBannerBitmap.bmp
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/Resources/WiXNewFolderBtn.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/Resources/WiXNewFolderBtn.ico
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/Resources/WiXUpFolderBtn.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/Resources/WiXUpFolderBtn.ico
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/XSLT/RegisterForCOM.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/XSLT/XslRegisterForCOM.xslt:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 |
110 |
111 |
112 |
113 |
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 |
122 |
123 |
124 |
125 |
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/XSLT/_SQLServerForExcel.Addin.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | 1
5 |
6 | no
7 | yes
8 | no
9 | no
10 | yes
11 |
12 |
13 | no
14 | no
15 | no
16 | no
17 |
18 |
19 | 1
20 |
21 | no
22 | yes
23 | no
24 | no
25 | yes
26 |
27 |
28 | no
29 | no
30 | no
31 | no
32 |
33 |
34 | 1
35 |
36 | no
37 | yes
38 | no
39 | no
40 | yes
41 |
42 |
43 | no
44 | no
45 | no
46 | no
47 |
48 |
49 | 1
50 |
51 | no
52 | yes
53 | no
54 | no
55 | yes
56 |
57 |
58 | no
59 | no
60 | no
61 | no
62 |
63 |
64 | 1
65 |
66 | no
67 | yes
68 | no
69 | no
70 | yes
71 |
72 |
73 | no
74 | no
75 | no
76 | no
77 |
78 |
79 | 1
80 |
81 | no
82 | yes
83 | no
84 | no
85 | yes
86 |
87 |
88 | no
89 | no
90 | no
91 | no
92 |
93 |
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/XSLT/readme.txt:
--------------------------------------------------------------------------------
1 | Designer for Visual Studio WiX Setup Projects
2 | ----------------------------------------------------------------------------------------------
3 |
4 | CONTENT OF THE XSLT FOLDER
5 | ----------------------------------------------------------------------------------------------
6 | 1. RegisterForCOM.xml: Contains XML for files that should be registered for COM.
7 | 2. XslRegisterForCOM.xslt: Contains XSL to apply to the RegisterForCOM.xml file.
8 | 3. XslProjectOutput.xslt: Contains XSL to apply to the generated XML for referenced projects.
9 | 4. XslFile.xslt: Contains XSL to apply to the generated XML for the COM files listed in
10 | the RegisterForCOM.xml file.
11 | 5. *.xml files: XML files that describe the referenced projects.
12 |
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/banner.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/banner.bmp
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/dialog.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup/0.0.1/dialog.bmp
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup_OLD/1.0.0/Product.wxs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
11 |
12 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 | 2]]>
48 | 2]]>
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup_OLD/1.0.0/SQLServerForExcel.wixproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Debug
5 | x86
6 | 3.5
7 | {80da327a-c111-4e78-b294-691be54f7f79}
8 | 2.0
9 | SQLServerForExcel
10 | Package
11 | $(MSBuildExtensionsPath32)\Microsoft\WiX\v3.x\Wix.targets
12 | $(MSBuildExtensionsPath)\Microsoft\WiX\v3.x\Wix.targets
13 |
14 |
15 | bin\$(Configuration)\
16 | Debug;ADX_PATH=C:\Program Files (x86)\Add-in Express\Add-in Express for .NET\;
17 | 1076
18 |
19 |
20 | bin\$(Configuration)\
21 | ADX_PATH=C:\Program Files (x86)\Add-in Express\Add-in Express for .NET\;
22 | 1076
23 |
24 |
25 |
26 |
27 |
28 |
29 | SQLServerForExcel.Addin
30 | {9F0D2C29-DB70-4658-A69A-03C65A73BF5E}
31 | True
32 | True
33 | Binaries;Content;Satellites
34 | INSTALLFOLDER
35 |
36 |
37 |
38 |
39 | $(WixExtDir)\WixUIExtension.dll
40 | WixUIExtension
41 |
42 |
43 | $(WixExtDir)\WixNetFxExtension.dll
44 | WixNetFxExtension
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup_OLD/1.0.0/banner.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup_OLD/1.0.0/banner.bmp
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup_OLD/1.0.0/dialog.bmp:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/SQLServerForExcel.Addin/SQLServerForExcel.AddinSetup_OLD/1.0.0/dialog.bmp
--------------------------------------------------------------------------------
/src/SQLServerForExcel.Addin/SqlUtils.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Data;
4 | using System.Data.Sql;
5 | using System.Data.SqlClient;
6 |
7 | namespace SQLServerForExcel_Addin
8 | {
9 | public static class SqlUtils
10 | {
11 | public static List GetAllSQLServers()
12 | {
13 | List returnValue = new List();
14 | SqlDataSourceEnumerator servers = SqlDataSourceEnumerator.Instance;
15 | DataTable serversTable = servers.GetDataSources();
16 |
17 | foreach (DataRow row in serversTable.Rows)
18 | {
19 | returnValue.Add(String.Format("{0} {1}", row[0], row[1]));
20 | }
21 | return returnValue;
22 | }
23 |
24 | public static List GetAllDatabases(string connectionString)
25 | {
26 | List returnValue = new List();
27 | using (SqlConnection conn = new SqlConnection(connectionString))
28 | {
29 | using (SqlCommand cmd = new SqlCommand("EXEC sp_databases;", conn))
30 | {
31 | SqlDataReader dbReader;
32 | conn.Open();
33 | dbReader = cmd.ExecuteReader();
34 | while (dbReader.Read())
35 | {
36 | returnValue.Add(dbReader["DATABASE_NAME"].ToString());
37 | }
38 | }
39 | conn.Close();
40 | }
41 | return returnValue;
42 | }
43 |
44 | public static List GetAllTables(string connectionString)
45 | {
46 | List returnValue = new List();
47 | SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder() { ConnectionString = connectionString };
48 | string _dbName = builder.InitialCatalog;
49 | using (SqlConnection conn = new SqlConnection(connectionString))
50 | {
51 | using (SqlCommand cmd = new SqlCommand(String.Format("EXEC sp_tables @table_name = '%',@table_qualifier = '{0}',@table_type = \"'Table'\";", _dbName), conn))
52 | {
53 | SqlDataReader dbReader;
54 | conn.Open();
55 | dbReader = cmd.ExecuteReader();
56 | while (dbReader.Read())
57 | {
58 | returnValue.Add(String.Format("{0}.{1}", dbReader["TABLE_OWNER"], dbReader["TABLE_NAME"]));
59 | }
60 | }
61 | conn.Close();
62 | }
63 | return returnValue;
64 | }
65 |
66 | public static List GetAllColumns(string connectionString, string tableName)
67 | {
68 | List returnValue = new List();
69 | SqlConnectionStringBuilder builder = new SqlConnectionStringBuilder() { ConnectionString = connectionString };
70 |
71 | tableName = tableName.Replace("dbo.", "");
72 | using (SqlConnection conn = new SqlConnection(connectionString))
73 | {
74 | using (SqlCommand cmd = new SqlCommand(String.Format("EXEC sp_columns '{0}';", tableName), conn))
75 | {
76 | SqlDataReader dbReader;
77 | conn.Open();
78 | dbReader = cmd.ExecuteReader();
79 | while (dbReader.Read())
80 | {
81 | returnValue.Add(dbReader["COLUMN_NAME"].ToString());
82 | }
83 | }
84 | conn.Close();
85 | }
86 | return returnValue;
87 | }
88 |
89 | public static string GetPrimaryKey(string connectionString, string tableName)
90 | {
91 | string[] splitString = tableName.Split('.');
92 | string returnValue = string.Empty;
93 |
94 | using (SqlConnection conn = new SqlConnection(connectionString))
95 | {
96 | using (SqlCommand cmd = new SqlCommand(String.Format("SELECT B.COLUMN_NAME FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS A, INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE B WHERE CONSTRAINT_TYPE = 'PRIMARY KEY' AND A.CONSTRAINT_NAME = B.CONSTRAINT_NAME And A.TABLE_NAME = '{0}'", splitString[1]), conn))
97 | {
98 | conn.Open();
99 | returnValue = cmd.ExecuteScalar().ToString();
100 | }
101 | conn.Close();
102 | }
103 | return returnValue;
104 | }
105 |
106 | }
107 | }
--------------------------------------------------------------------------------
/src/SQLServerForExcel.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 15
4 | VisualStudioVersion = 15.0.28010.2046
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SQLServerForExcel.Addin", "SQLServerForExcel.Addin\SQLServerForExcel.Addin.csproj", "{9F0D2C29-DB70-4658-A69A-03C65A73BF5E}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GenericParsing", "GenericParser_src\GenericParsing\GenericParsing.csproj", "{ADD325F8-CBD9-43FE-850D-E2F34D736C9D}"
9 | EndProject
10 | Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "SQLServerForExcel.AddinSetup(0.0.1)", "SQLServerForExcel.Addin\SQLServerForExcel.AddinSetup\0.0.1\SQLServerForExcel.AddinSetup(0.0.1).wixproj", "{2F26547A-8CB6-4D32-94BE-66C7E3E6A5E7}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Debug|Any CPU = Debug|Any CPU
15 | Debug|Mixed Platforms = Debug|Mixed Platforms
16 | Debug|x86 = Debug|x86
17 | Release|Any CPU = Release|Any CPU
18 | Release|Mixed Platforms = Release|Mixed Platforms
19 | Release|x86 = Release|x86
20 | EndGlobalSection
21 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
22 | {9F0D2C29-DB70-4658-A69A-03C65A73BF5E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23 | {9F0D2C29-DB70-4658-A69A-03C65A73BF5E}.Debug|Any CPU.Build.0 = Debug|Any CPU
24 | {9F0D2C29-DB70-4658-A69A-03C65A73BF5E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
25 | {9F0D2C29-DB70-4658-A69A-03C65A73BF5E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
26 | {9F0D2C29-DB70-4658-A69A-03C65A73BF5E}.Debug|x86.ActiveCfg = Debug|Any CPU
27 | {9F0D2C29-DB70-4658-A69A-03C65A73BF5E}.Release|Any CPU.ActiveCfg = Release|Any CPU
28 | {9F0D2C29-DB70-4658-A69A-03C65A73BF5E}.Release|Any CPU.Build.0 = Release|Any CPU
29 | {9F0D2C29-DB70-4658-A69A-03C65A73BF5E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
30 | {9F0D2C29-DB70-4658-A69A-03C65A73BF5E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
31 | {9F0D2C29-DB70-4658-A69A-03C65A73BF5E}.Release|x86.ActiveCfg = Release|Any CPU
32 | {ADD325F8-CBD9-43FE-850D-E2F34D736C9D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
33 | {ADD325F8-CBD9-43FE-850D-E2F34D736C9D}.Debug|Any CPU.Build.0 = Debug|Any CPU
34 | {ADD325F8-CBD9-43FE-850D-E2F34D736C9D}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
35 | {ADD325F8-CBD9-43FE-850D-E2F34D736C9D}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
36 | {ADD325F8-CBD9-43FE-850D-E2F34D736C9D}.Debug|x86.ActiveCfg = Debug|Any CPU
37 | {ADD325F8-CBD9-43FE-850D-E2F34D736C9D}.Release|Any CPU.ActiveCfg = Release|Any CPU
38 | {ADD325F8-CBD9-43FE-850D-E2F34D736C9D}.Release|Any CPU.Build.0 = Release|Any CPU
39 | {ADD325F8-CBD9-43FE-850D-E2F34D736C9D}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
40 | {ADD325F8-CBD9-43FE-850D-E2F34D736C9D}.Release|Mixed Platforms.Build.0 = Release|Any CPU
41 | {ADD325F8-CBD9-43FE-850D-E2F34D736C9D}.Release|x86.ActiveCfg = Release|Any CPU
42 | {2F26547A-8CB6-4D32-94BE-66C7E3E6A5E7}.Debug|Any CPU.ActiveCfg = Debug|x86
43 | {2F26547A-8CB6-4D32-94BE-66C7E3E6A5E7}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
44 | {2F26547A-8CB6-4D32-94BE-66C7E3E6A5E7}.Debug|Mixed Platforms.Build.0 = Debug|x86
45 | {2F26547A-8CB6-4D32-94BE-66C7E3E6A5E7}.Debug|x86.ActiveCfg = Debug|x86
46 | {2F26547A-8CB6-4D32-94BE-66C7E3E6A5E7}.Debug|x86.Build.0 = Debug|x86
47 | {2F26547A-8CB6-4D32-94BE-66C7E3E6A5E7}.Release|Any CPU.ActiveCfg = Release|x86
48 | {2F26547A-8CB6-4D32-94BE-66C7E3E6A5E7}.Release|Mixed Platforms.ActiveCfg = Release|x86
49 | {2F26547A-8CB6-4D32-94BE-66C7E3E6A5E7}.Release|Mixed Platforms.Build.0 = Release|x86
50 | {2F26547A-8CB6-4D32-94BE-66C7E3E6A5E7}.Release|x86.ActiveCfg = Release|x86
51 | {2F26547A-8CB6-4D32-94BE-66C7E3E6A5E7}.Release|x86.Build.0 = Release|x86
52 | EndGlobalSection
53 | GlobalSection(SolutionProperties) = preSolution
54 | HideSolutionNode = FALSE
55 | EndGlobalSection
56 | GlobalSection(ExtensibilityGlobals) = postSolution
57 | SolutionGuid = {A270ECD1-4367-42F5-A016-3902358F4BE8}
58 | EndGlobalSection
59 | EndGlobal
60 |
--------------------------------------------------------------------------------
/src/lib/GenericParsing.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/lib/GenericParsing.dll
--------------------------------------------------------------------------------
/src/lib/Microsoft.Data.ConnectionUI.Dialog.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/lib/Microsoft.Data.ConnectionUI.Dialog.dll
--------------------------------------------------------------------------------
/src/lib/Microsoft.Data.ConnectionUI.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/Pietervdw/SQLForExcel/a6fd155de87432ddbf6059df7391f4af5bb0433c/src/lib/Microsoft.Data.ConnectionUI.dll
--------------------------------------------------------------------------------