Skip to content

Commit 5c46819

Browse files
authored
Merge pull request #9 from statisticssweden/Feature/#367_Add_Csv2_and_Csv3
Added format type csv2 and csv3 to possible output format for sq
2 parents 773ca4e + c59f042 commit 5c46819

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

PCAxis.Query/Enums/SavedQueryOutputFormatType.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ public enum SavedQueryOutputFormatType
6060
/// </summary>
6161
csv_semicolonhead,
6262
/// <summary>
63+
/// Get result as csv-file in Csv2 format
64+
/// </summary>
65+
csv2,
66+
/// <summary>
67+
/// Get result as csv-file in Csv3 format
68+
/// </summary>
69+
csv3,
70+
/// <summary>
6371
/// Get result as json-stat-file
6472
/// </summary>
6573
json_stat,

PCAxis.Query/QueryHelper.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,12 @@ public static bool TryParseSavedQueryOutputFormat(string desiredFormat, out stri
369369
case SavedQueryOutputFormatType.csv_tabhead:
370370
formatString = "FileTypeCsvWithHeadingAndTabulator";
371371
break;
372+
case SavedQueryOutputFormatType.csv2:
373+
formatString = "FileTypeCsv2";
374+
break;
375+
case SavedQueryOutputFormatType.csv3:
376+
formatString = "FileTypeCsv3";
377+
break;
372378
case SavedQueryOutputFormatType.xlsx:
373379
formatString = "FileTypeExcelX";
374380
break;

0 commit comments

Comments
 (0)