Skip to content

Commit 33b91b1

Browse files
MaddyDevCharles-Gagnonchlafreniere
authored
javascript language support changes and basic samples (#229)
* refactor folder structure for js lang support * remove local setting from samples * add samples for js lang * add Sdk.Functions packageRefer to extensions.cspro * fixes * Reference project * input binding working changes * update readme with ext install step * push read me again * changes for outputbinding * updates to upsert logic for js support * clean up and add comments * remove SqlConverterJArray * clean up from feedabck * format document * address PR comments * add local.settings.json * add comments * simplify logic * formatting error fix * address comments part1 * address comments 2 * rename variables * Ensure test file copy to SqlExtensionSamples dir * remove JObject conversion * add comments and update xml * update version * refactor logic to always use columnNames * remove tests from package.json * remove bracketed from GetColumnNamesFromPOCO * rename items * add comments * Try removing test commanad again * remove js samples * undo local changes Co-authored-by: chgagnon <chgagnon@microsoft.com> Co-authored-by: chlafreniere <hichise@gmail.com>
1 parent 6530f39 commit 33b91b1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+171
-68
lines changed

.vscode/launch.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66
"type": "coreclr",
77
"request": "attach",
88
"processId": "${command:azureFunctions.pickProcess}"
9+
},
10+
{
11+
"name": "Attach to Node Functions",
12+
"type": "node",
13+
"request": "attach",
14+
"port": 9229,
15+
"preLaunchTask": "func: host start"
916
}
1017
]
1118
}

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"azureFunctions.projectSubpath": "samples",
3-
"azureFunctions.deploySubpath": "samples/bin/Release/netcoreapp3.1/publish",
2+
"azureFunctions.projectSubpath": "samples/samples-csharp",
3+
"azureFunctions.deploySubpath": "samples/samples-csharp/bin/Release/netcoreapp3.1/publish",
44
"azureFunctions.projectLanguage": "C#",
55
"azureFunctions.projectRuntime": "~3",
66
"debug.internalConsoleOptions": "neverOpen",

.vscode/tasks.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"type": "process",
1313
"problemMatcher": "$msCompile",
1414
"options": {
15-
"cwd": "${workspaceFolder}/samples"
15+
"cwd": "${workspaceFolder}/samples/samples-csharp"
1616
}
1717
},
1818
{
@@ -31,7 +31,7 @@
3131
},
3232
"problemMatcher": "$msCompile",
3333
"options": {
34-
"cwd": "${workspaceFolder}/samples"
34+
"cwd": "${workspaceFolder}/samples/samples-csharp"
3535
}
3636
},
3737
{
@@ -47,7 +47,7 @@
4747
"type": "process",
4848
"problemMatcher": "$msCompile",
4949
"options": {
50-
"cwd": "${workspaceFolder}/samples"
50+
"cwd": "${workspaceFolder}/samples/samples-csharp"
5151
}
5252
},
5353
{
@@ -64,14 +64,14 @@
6464
"dependsOn": "clean release (functions)",
6565
"problemMatcher": "$msCompile",
6666
"options": {
67-
"cwd": "${workspaceFolder}/samples"
67+
"cwd": "${workspaceFolder}/samples/samples-csharp"
6868
}
6969
},
7070
{
7171
"type": "func",
7272
"dependsOn": "build (functions)",
7373
"options": {
74-
"cwd": "${workspaceFolder}/samples/bin/Debug/netcoreapp3.1"
74+
"cwd": "${workspaceFolder}/samples/samples-csharp/bin/Debug/netcoreapp3.1"
7575
},
7676
"command": "host start",
7777
"isBackground": true,

Directory.Packages.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
<PackageVersion Include="Moq" Version="4.14.3" />
1313
<PackageVersion Include="xunit" Version="2.4.0" />
1414
<PackageVersion Include="xunit.runner.visualstudio" Version="2.4.0" />
15+
<PackageVersion Include="Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator" Version="1.2.3" />
1516
</ItemGroup>
1617
</Project>

WebJobs.Extensions.Sql.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.30204.135
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SqlExtensionSamples", "samples\Microsoft.Azure.WebJobs.Extensions.Sql.Samples.csproj", "{B2E0EFB9-BEDB-48F7-BD5A-0E1010333475}"
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SqlExtensionSamples", "samples\samples-csharp\Microsoft.Azure.WebJobs.Extensions.Sql.Samples.csproj", "{B2E0EFB9-BEDB-48F7-BD5A-0E1010333475}"
77
EndProject
88
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Microsoft.Azure.WebJobs.Extensions.Sql", "src\Microsoft.Azure.WebJobs.Extensions.Sql.csproj", "{4453B407-2CA3-4011-BDE5-247FCE5C1974}"
99
EndProject
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)