Skip to content

Commit 6b69017

Browse files
committed
Minor Changes for Azure Function for MySQL
1 parent ac5d3dd commit 6b69017

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

articles/azure-functions/functions-bindings-azure-mysql-input.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ CREATE TABLE Products (
494494
The following example shows a MYSQL input binding that is [triggered by an HTTP](./functions-bindings-http-webhook-trigger.md) request and reads from a query and returns the results in the HTTP response.
495495

496496
::: zone-end
497+
497498
::: zone pivot="programming-language-typescript"
498499

499500
# [Model v4](#tab/nodejs-v4)
@@ -531,6 +532,7 @@ TypeScript samples aren't documented for model v3.
531532
---
532533

533534
::: zone-end
535+
534536
::: zone pivot="programming-language-javascript"
535537

536538
# [Model v4](#tab/nodejs-v4)
@@ -616,6 +618,7 @@ module.exports = async function (context, req, products) {
616618
---
617619

618620
::: zone-end
621+
619622
::: zone pivot="programming-language-javascript,programming-language-typescript"
620623

621624
<a id="http-trigger-look-up-id-from-query-string-javascript"></a>
@@ -661,6 +664,7 @@ TypeScript samples aren't documented for model v3.
661664
---
662665

663666
::: zone-end
667+
664668
::: zone pivot="programming-language-javascript"
665669

666670
# [Model v4](#tab/nodejs-v4)
@@ -746,6 +750,7 @@ module.exports = async function (context, req, products) {
746750
---
747751

748752
::: zone-end
753+
749754
::: zone pivot="programming-language-javascript,programming-language-typescript"
750755

751756
<a id="http-trigger-delete-one-or-multiple-rows-javascript"></a>
@@ -765,6 +770,7 @@ END
765770
```
766771

767772
::: zone-end
773+
768774
::: zone pivot="programming-language-typescript"
769775

770776
# [Model v4](#tab/nodejs-v4)
@@ -802,6 +808,7 @@ TypeScript samples aren't documented for model v3.
802808
---
803809

804810
::: zone-end
811+
805812
::: zone pivot="programming-language-javascript"
806813

807814
# [Model v4](#tab/nodejs-v4)
@@ -886,6 +893,7 @@ module.exports = async function (context, req, products) {
886893
---
887894

888895
::: zone-end
896+
889897
::: zone pivot="programming-language-powershell"
890898

891899
More samples for the Azure Database for MySQL input binding are available in the [GitHub repository](https://github.com/Azure/azure-functions-mysql-extension/tree/main/samples/samples-powershell).
@@ -1428,6 +1436,7 @@ In the [Java functions runtime library](/java/api/overview/azure/functions/runti
14281436
| **parameters** | Optional. Zero or more parameter values passed to the command during execution as a single string. Must follow the format `@param1=param1,@param2=param2`. Neither the parameter name nor the parameter value can contain a comma (`,`) or an equals sign (`=`). |
14291437

14301438
::: zone-end
1439+
14311440
::: zone pivot="programming-language-javascript,programming-language-typescript"
14321441

14331442
## Configuration
@@ -1460,6 +1469,7 @@ The following table explains the binding configuration properties that you set i
14601469
---
14611470

14621471
::: zone-end
1472+
14631473
::: zone pivot="programming-language-powershell,programming-language-python"
14641474
## Configuration
14651475

@@ -1474,6 +1484,7 @@ The following table explains the binding configuration properties that you set i
14741484
| **connectionStringSetting** | Required. The name of an app setting that contains the connection string for the database against which the query or stored procedure is being executed. This value isn't the actual connection string and must instead resolve to an environment variable name. Optional keywords in the connection string value are [available to refine MySQL bindings connectivity](./functions-bindings-azure-mysql.md#mysql-connection-string). |
14751485
| **commandType** | Required. A [CommandType](/dotnet/api/system.data.commandtype) value, which is [Text](/dotnet/api/system.data.commandtype#fields) for a query and [StoredProcedure](/dotnet/api/system.data.commandtype#fields) for a stored procedure. |
14761486
| **parameters** | Optional. Zero or more parameter values passed to the command during execution as a single string. Must follow the format `@param1=param1,@param2=param2`. Neither the parameter name nor the parameter value can contain a comma (`,`) or an equals sign (`=`). |
1487+
14771488
::: zone-end
14781489

14791490

@@ -1490,4 +1501,5 @@ If an exception occurs when a MySQL input binding is executed then the function
14901501

14911502
- [Save data to a database (Output binding)](./functions-bindings-azure-mysql-output.md)
14921503
- [Run a function when data is changed in a MySQL table (Trigger)](./functions-bindings-azure-mysql-trigger.md)
1493-
- [Run a function from a HTTP request (trigger)](./functions-bindings-http-webhook-trigger.md)
1504+
- [Run a function from a HTTP request (trigger)](./functions-bindings-http-webhook-trigger.md)
1505+

articles/azure-functions/functions-bindings-azure-mysql-output.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ CREATE TABLE Products (
292292
The following example shows a MySQL output binding that adds records to a table, using data provided in an HTTP POST request as a JSON body.
293293

294294
::: zone-end
295+
295296
::: zone pivot="programming-language-typescript"
296297

297298
# [Model v4](#tab/nodejs-v4)
@@ -332,11 +333,11 @@ TypeScript samples aren't documented for model v3.
332333
---
333334

334335
::: zone-end
336+
335337
::: zone pivot="programming-language-javascript"
336338

337339
# [Model v4](#tab/nodejs-v4)
338340

339-
:::code language="javascript" source="~/azure-functions-nodejs-v4/js/src/functions/sqlOutput1.js" :::
340341
```javascript
341342
const { app, output } = require('@azure/functions');
342343

@@ -656,6 +657,7 @@ In the [Java functions runtime library](/java/api/overview/azure/functions/runti
656657
|**name** | Required. The unique name of the function binding. |
657658

658659
::: zone-end
660+
659661
::: zone pivot="programming-language-javascript,programming-language-typescript"
660662

661663
## Configuration
@@ -684,6 +686,7 @@ The following table explains the binding configuration properties that you set i
684686
---
685687

686688
::: zone-end
689+
687690
::: zone pivot="programming-language-powershell,programming-language-python"
688691
## Configuration
689692

0 commit comments

Comments
 (0)