Skip to content

Commit 61a3539

Browse files
author
Robin Wilson
committed
Ensure DB closed, make all DB calls async, custom delimiter, trim spaces, calculate columns by tracking use of double speechmarks
1 parent dc1443a commit 61a3539

27 files changed

+109
-83
lines changed
0 Bytes
Binary file not shown.
12.2 KB
Binary file not shown.
-32.8 KB
Binary file not shown.
9.2 KB
Binary file not shown.
33.6 KB
Binary file not shown.
0 Bytes
Binary file not shown.

.vs/ExcelSQLImporter/v17/.suo

-9.5 KB
Binary file not shown.

.vs/ExcelSQLImporter/v17/DocumentLayout.backup.json

Lines changed: 25 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
"RelativeMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|solutionrelative:excelsqlimporter\\appsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
1212
},
1313
{
14-
"AbsoluteMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|c:\\users\\robin.wilson.shcg\\source\\repos\\excelsqlimporter\\excelsqlimporter\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
15-
"RelativeMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|solutionrelative:excelsqlimporter\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
14+
"AbsoluteMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|c:\\users\\robin.wilson.shcg\\source\\repos\\excelsqlimporter\\excelsqlimporter\\appsettings3.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
15+
"RelativeMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|solutionrelative:excelsqlimporter\\appsettings3.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
1616
},
1717
{
1818
"AbsoluteMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|c:\\users\\robin.wilson.shcg\\source\\repos\\excelsqlimporter\\excelsqlimporter\\appsettings2.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
1919
"RelativeMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|solutionrelative:excelsqlimporter\\appsettings2.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
2020
},
2121
{
22-
"AbsoluteMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|c:\\users\\robin.wilson.shcg\\source\\repos\\excelsqlimporter\\excelsqlimporter\\appsettings3.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
23-
"RelativeMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|solutionrelative:excelsqlimporter\\appsettings3.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
22+
"AbsoluteMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|c:\\users\\robin.wilson.shcg\\source\\repos\\excelsqlimporter\\excelsqlimporter\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
23+
"RelativeMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|solutionrelative:excelsqlimporter\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
2424
}
2525
],
2626
"DocumentGroupContainers": [
@@ -30,19 +30,32 @@
3030
"DocumentGroups": [
3131
{
3232
"DockedWidth": 200,
33-
"SelectedChildIndex": 2,
33+
"SelectedChildIndex": 0,
3434
"Children": [
3535
{
3636
"$type": "Document",
37-
"DocumentIndex": 4,
37+
"DocumentIndex": 0,
38+
"Title": "ExcelSQLImporter",
39+
"DocumentMoniker": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\ExcelSQLImporter.csproj",
40+
"RelativeDocumentMoniker": "ExcelSQLImporter\\ExcelSQLImporter.csproj",
41+
"ToolTip": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\ExcelSQLImporter.csproj",
42+
"RelativeToolTip": "ExcelSQLImporter\\ExcelSQLImporter.csproj",
43+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000758|",
44+
"WhenOpened": "2024-12-01T00:57:37.863Z",
45+
"EditorCaption": ""
46+
},
47+
{
48+
"$type": "Document",
49+
"DocumentIndex": 2,
3850
"Title": "appsettings3.json",
3951
"DocumentMoniker": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\appsettings3.json",
4052
"RelativeDocumentMoniker": "ExcelSQLImporter\\appsettings3.json",
4153
"ToolTip": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\appsettings3.json",
4254
"RelativeToolTip": "ExcelSQLImporter\\appsettings3.json",
43-
"ViewState": "AgIAAA4AAAAAAAAAAAAYwBUAAABnAAAAAAAAAA==",
55+
"ViewState": "AgIAAAAAAAAAAAAAAAAAABUAAABnAAAAAAAAAA==",
4456
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
45-
"WhenOpened": "2024-11-24T09:10:37.173Z"
57+
"WhenOpened": "2024-11-24T09:10:37.173Z",
58+
"EditorCaption": ""
4659
},
4760
{
4861
"$type": "Document",
@@ -54,18 +67,7 @@
5467
"RelativeToolTip": "ExcelSQLImporter\\appsettings2.json",
5568
"ViewState": "AgIAAAAAAAAAAAAAAAAAACAAAAABAAAAAAAAAA==",
5669
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
57-
"WhenOpened": "2024-11-24T09:03:48.155Z"
58-
},
59-
{
60-
"$type": "Document",
61-
"DocumentIndex": 0,
62-
"Title": "ExcelSQLImporter",
63-
"DocumentMoniker": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\ExcelSQLImporter.csproj",
64-
"RelativeDocumentMoniker": "ExcelSQLImporter\\ExcelSQLImporter.csproj",
65-
"ToolTip": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\ExcelSQLImporter.csproj",
66-
"RelativeToolTip": "ExcelSQLImporter\\ExcelSQLImporter.csproj",
67-
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000758|",
68-
"WhenOpened": "2024-11-24T01:55:36.55Z",
70+
"WhenOpened": "2024-11-24T09:03:48.155Z",
6971
"EditorCaption": ""
7072
},
7173
{
@@ -76,20 +78,20 @@
7678
"RelativeDocumentMoniker": "ExcelSQLImporter\\appsettings.json",
7779
"ToolTip": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\appsettings.json",
7880
"RelativeToolTip": "ExcelSQLImporter\\appsettings.json",
79-
"ViewState": "AgIAAAAAAAAAAAAAAAAAACAAAAABAAAAAAAAAA==",
81+
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAcAAAAZAAAAAAAAAA==",
8082
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
8183
"WhenOpened": "2024-11-23T12:04:55.34Z",
8284
"EditorCaption": ""
8385
},
8486
{
8587
"$type": "Document",
86-
"DocumentIndex": 2,
88+
"DocumentIndex": 4,
8789
"Title": "Program.cs",
8890
"DocumentMoniker": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\Program.cs",
8991
"RelativeDocumentMoniker": "ExcelSQLImporter\\Program.cs",
9092
"ToolTip": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\Program.cs",
9193
"RelativeToolTip": "ExcelSQLImporter\\Program.cs",
92-
"ViewState": "AgIAAHQAAAAAAAAAAAAAAJMAAAAAAAAAAAAAAA==",
94+
"ViewState": "AgIAAK0BAAAAAAAAAAAAALwBAAAAAAAAAAAAAA==",
9395
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
9496
"WhenOpened": "2024-11-23T11:59:48.322Z",
9597
"EditorCaption": ""

.vs/ExcelSQLImporter/v17/DocumentLayout.json

Lines changed: 30 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
"Version": 1,
33
"WorkspaceRootPath": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\",
44
"Documents": [
5-
{
6-
"AbsoluteMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|c:\\users\\robin.wilson.shcg\\source\\repos\\excelsqlimporter\\excelsqlimporter\\appsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
7-
"RelativeMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|solutionrelative:excelsqlimporter\\appsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
8-
},
95
{
106
"AbsoluteMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|c:\\users\\robin.wilson.shcg\\source\\repos\\excelsqlimporter\\excelsqlimporter\\excelsqlimporter.csproj||{04B8AB82-A572-4FEF-95CE-5222444B6B64}|",
117
"RelativeMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|solutionrelative:excelsqlimporter\\excelsqlimporter.csproj||{04B8AB82-A572-4FEF-95CE-5222444B6B64}|"
128
},
139
{
14-
"AbsoluteMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|c:\\users\\robin.wilson.shcg\\source\\repos\\excelsqlimporter\\excelsqlimporter\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
15-
"RelativeMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|solutionrelative:excelsqlimporter\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
10+
"AbsoluteMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|c:\\users\\robin.wilson.shcg\\source\\repos\\excelsqlimporter\\excelsqlimporter\\appsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
11+
"RelativeMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|solutionrelative:excelsqlimporter\\appsettings.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
12+
},
13+
{
14+
"AbsoluteMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|c:\\users\\robin.wilson.shcg\\source\\repos\\excelsqlimporter\\excelsqlimporter\\appsettings3.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
15+
"RelativeMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|solutionrelative:excelsqlimporter\\appsettings3.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
1616
},
1717
{
1818
"AbsoluteMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|c:\\users\\robin.wilson.shcg\\source\\repos\\excelsqlimporter\\excelsqlimporter\\appsettings2.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
1919
"RelativeMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|solutionrelative:excelsqlimporter\\appsettings2.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
2020
},
2121
{
22-
"AbsoluteMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|c:\\users\\robin.wilson.shcg\\source\\repos\\excelsqlimporter\\excelsqlimporter\\appsettings3.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}",
23-
"RelativeMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|solutionrelative:excelsqlimporter\\appsettings3.json||{90A6B3A7-C1A3-4009-A288-E2FF89E96FA0}"
22+
"AbsoluteMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|c:\\users\\robin.wilson.shcg\\source\\repos\\excelsqlimporter\\excelsqlimporter\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}",
23+
"RelativeMoniker": "D:0:0:{DC2AE3A5-38F3-4A04-9983-1F87680FCCF0}|ExcelSQLImporter\\ExcelSQLImporter.csproj|solutionrelative:excelsqlimporter\\program.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}"
2424
}
2525
],
2626
"DocumentGroupContainers": [
@@ -30,19 +30,32 @@
3030
"DocumentGroups": [
3131
{
3232
"DockedWidth": 200,
33-
"SelectedChildIndex": 3,
33+
"SelectedChildIndex": 0,
3434
"Children": [
3535
{
3636
"$type": "Document",
37-
"DocumentIndex": 4,
37+
"DocumentIndex": 0,
38+
"Title": "ExcelSQLImporter",
39+
"DocumentMoniker": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\ExcelSQLImporter.csproj",
40+
"RelativeDocumentMoniker": "ExcelSQLImporter\\ExcelSQLImporter.csproj",
41+
"ToolTip": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\ExcelSQLImporter.csproj",
42+
"RelativeToolTip": "ExcelSQLImporter\\ExcelSQLImporter.csproj",
43+
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000758|",
44+
"WhenOpened": "2024-12-01T00:57:37.863Z",
45+
"EditorCaption": ""
46+
},
47+
{
48+
"$type": "Document",
49+
"DocumentIndex": 2,
3850
"Title": "appsettings3.json",
3951
"DocumentMoniker": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\appsettings3.json",
4052
"RelativeDocumentMoniker": "ExcelSQLImporter\\appsettings3.json",
4153
"ToolTip": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\appsettings3.json",
4254
"RelativeToolTip": "ExcelSQLImporter\\appsettings3.json",
43-
"ViewState": "AgIAAA4AAAAAAAAAAAAYwBUAAABnAAAAAAAAAA==",
55+
"ViewState": "AgIAAAAAAAAAAAAAAAAAABUAAABnAAAAAAAAAA==",
4456
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
45-
"WhenOpened": "2024-11-24T09:10:37.173Z"
57+
"WhenOpened": "2024-11-24T09:10:37.173Z",
58+
"EditorCaption": ""
4659
},
4760
{
4861
"$type": "Document",
@@ -54,42 +67,31 @@
5467
"RelativeToolTip": "ExcelSQLImporter\\appsettings2.json",
5568
"ViewState": "AgIAAAAAAAAAAAAAAAAAACAAAAABAAAAAAAAAA==",
5669
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
57-
"WhenOpened": "2024-11-24T09:03:48.155Z"
58-
},
59-
{
60-
"$type": "Document",
61-
"DocumentIndex": 1,
62-
"Title": "ExcelSQLImporter",
63-
"DocumentMoniker": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\ExcelSQLImporter.csproj",
64-
"RelativeDocumentMoniker": "ExcelSQLImporter\\ExcelSQLImporter.csproj",
65-
"ToolTip": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\ExcelSQLImporter.csproj",
66-
"RelativeToolTip": "ExcelSQLImporter\\ExcelSQLImporter.csproj",
67-
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000758|",
68-
"WhenOpened": "2024-11-24T01:55:36.55Z",
70+
"WhenOpened": "2024-11-24T09:03:48.155Z",
6971
"EditorCaption": ""
7072
},
7173
{
7274
"$type": "Document",
73-
"DocumentIndex": 0,
75+
"DocumentIndex": 1,
7476
"Title": "appsettings.json",
7577
"DocumentMoniker": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\appsettings.json",
7678
"RelativeDocumentMoniker": "ExcelSQLImporter\\appsettings.json",
7779
"ToolTip": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\appsettings.json",
7880
"RelativeToolTip": "ExcelSQLImporter\\appsettings.json",
79-
"ViewState": "AgIAAAAAAAAAAAAAAAAAACAAAAABAAAAAAAAAA==",
81+
"ViewState": "AgIAAAAAAAAAAAAAAAAAAAcAAAAZAAAAAAAAAA==",
8082
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.001642|",
8183
"WhenOpened": "2024-11-23T12:04:55.34Z",
8284
"EditorCaption": ""
8385
},
8486
{
8587
"$type": "Document",
86-
"DocumentIndex": 2,
88+
"DocumentIndex": 4,
8789
"Title": "Program.cs",
8890
"DocumentMoniker": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\Program.cs",
8991
"RelativeDocumentMoniker": "ExcelSQLImporter\\Program.cs",
9092
"ToolTip": "C:\\Users\\Robin.Wilson.SHCG\\source\\repos\\ExcelSQLImporter\\ExcelSQLImporter\\Program.cs",
9193
"RelativeToolTip": "ExcelSQLImporter\\Program.cs",
92-
"ViewState": "AgIAAHQAAAAAAAAAAAAAAJMAAAAAAAAAAAAAAA==",
94+
"ViewState": "AgIAAK0BAAAAAAAAAAAAALwBAAAAAAAAAAAAAA==",
9395
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|",
9496
"WhenOpened": "2024-11-23T11:59:48.322Z",
9597
"EditorCaption": ""
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)