You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following example shows a [C# function](functions-dotnet-class-library.md) that executes a stored procedure with input from the HTTP request query parameter.
143
143
144
-
The stored procedure `DeleteProductsCost` must be created on the MySQL database. In this example, the stored procedure deletes a single record or all records depending on the value of the parameter.
144
+
The stored procedure `DeleteProductsCost` must be created on the MySQL database. In this example, the stored procedure deletes a single record or all records depending on the value of the parameter.
The following example shows a [C# function](functions-dotnet-class-library.md) that executes a stored procedure with input from the HTTP request query parameter.
285
285
286
-
The stored procedure `DeleteProductsCost` must be created on the MySQL database. In this example, the stored procedure deletes a single record or all records depending on the value of the parameter.
286
+
The stored procedure `DeleteProductsCost` must be created on the MySQL database. In this example, the stored procedure deletes a single record or all records depending on the value of the parameter.
287
287
288
288
```sql
289
289
DROP PROCEDURE IF EXISTS DeleteProductsCost;
@@ -434,7 +434,7 @@ public class GetProductById {
434
434
435
435
The following example shows a MySQL input binding in a Java function that is [triggered by an HTTP](./functions-bindings-http-webhook-trigger.md) request and executes a stored procedure with input from the HTTP request query parameter.
436
436
437
-
The stored procedure `DeleteProductsCost` must be created on the database. In this example, the stored procedure deletes a single record or all records depending on the value of the parameter.
437
+
The stored procedure `DeleteProductsCost` must be created on the database. In this example, the stored procedure deletes a single record or all records depending on the value of the parameter.
438
438
439
439
```sql
440
440
DROP PROCEDURE IF EXISTS DeleteProductsCost;
@@ -570,7 +570,7 @@ app.http('GetProducts', {
570
570
571
571
# [Model v3](#tab/nodejs-v3)
572
572
573
-
The following is binding data in the function.json file:
573
+
The following example is binding data in the function.json file:
574
574
575
575
```json
576
576
{
@@ -605,7 +605,7 @@ The following is binding data in the function.json file:
605
605
606
606
The [configuration](#configuration) section explains these properties.
The following example shows a MySQL input binding that is [triggered by an HTTP](./functions-bindings-http-webhook-trigger.md) request and executes a stored procedure with input from the HTTP request query parameter.
764
764
765
-
The stored procedure `DeleteProductsCost` must be created on the database. In this example, the stored procedure deletes a single record or all records depending on the value of the parameter.
765
+
The stored procedure `DeleteProductsCost` must be created on the database. In this example, the stored procedure deletes a single record or all records depending on the value of the parameter.
766
766
767
767
```sql
768
768
DROP PROCEDURE IF EXISTS DeleteProductsCost;
@@ -880,7 +880,7 @@ app.http('httpTrigger1', {
880
880
881
881
The [configuration](#configuration) section explains these properties.
882
882
883
-
The following is sample JavaScript code:
883
+
The following example is sample JavaScript code:
884
884
885
885
886
886
```javascript
@@ -925,7 +925,7 @@ CREATE TABLE Products (
925
925
926
926
The following example shows a MySQL input binding in a function.json file and a PowerShell function 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.
927
927
928
-
The following is binding data in the function.json file:
928
+
The following example is binding data in the function.json file:
929
929
930
930
```json
931
931
{
@@ -960,7 +960,7 @@ The following is binding data in the function.json file:
960
960
961
961
The [configuration](#configuration) section explains these properties.
962
962
963
-
The following is sample PowerShell code for the function in the `run.ps1` file:
963
+
The following example is sample PowerShell code for the function in the `run.ps1` file:
The following example shows a MySQL input binding in a PowerShell function that is [triggered by an HTTP](./functions-bindings-http-webhook-trigger.md) request and reads from a query filtered by a parameter from the query string and returns the row in the HTTP response.
982
982
983
-
The following is binding data in the function.json file:
983
+
The following example is binding data in the function.json file:
The following example shows a MySQL input binding in a function.json file and a PowerShell function that is [triggered by an HTTP](./functions-bindings-http-webhook-trigger.md) request and executes a stored procedure with input from the HTTP request query parameter.
1039
1039
1040
-
The stored procedure `DeleteProductsCost` must be created on the database. In this example, the stored procedure deletes a single record or all records depending on the value of the parameter.
1040
+
The stored procedure `DeleteProductsCost` must be created on the database. In this example, the stored procedure deletes a single record or all records depending on the value of the parameter.
1041
1041
1042
1042
```sql
1043
1043
DROP PROCEDURE IF EXISTS DeleteProductsCost;
@@ -1082,7 +1082,7 @@ END
1082
1082
1083
1083
The [configuration](#configuration) section explains these properties.
1084
1084
1085
-
The following is sample PowerShell code for the function in the `run.ps1` file:
1085
+
The following example is sample PowerShell code for the function in the `run.ps1` file:
1086
1086
1087
1087
1088
1088
```powershell
@@ -1133,7 +1133,7 @@ The following example shows a MySQL input binding in a function.json file and a
1133
1133
1134
1134
# [v2](#tab/python-v2)
1135
1135
1136
-
The following is sample python code for the function_app.py file:
1136
+
The following example is sample python code for the function_app.py file:
The following example shows a MySQL input binding in a function.json file and a Python function that is [triggered by an HTTP](./functions-bindings-http-webhook-trigger.md) request and executes a stored procedure with input from the HTTP request query parameter.
1315
1315
1316
-
The stored procedure `DeleteProductsCost` must be created on the database. In this example, the stored procedure deletes a single record or all records depending on the value of the parameter.
1316
+
The stored procedure `DeleteProductsCost` must be created on the database. In this example, the stored procedure deletes a single record or all records depending on the value of the parameter.
1317
1317
1318
1318
```sql
1319
1319
DROP PROCEDURE IF EXISTS DeleteProductsCost;
@@ -1326,7 +1326,7 @@ END
1326
1326
1327
1327
# [v2](#tab/python-v2)
1328
1328
1329
-
The following is sample python code for the function_app.py file:
1329
+
The following example is sample python code for the function_app.py file:
1330
1330
1331
1331
```python
1332
1332
import azure.functions as func
@@ -1470,7 +1470,7 @@ The following table explains the binding configuration properties that you set i
1470
1470
|**direction**| Required. Must be set to `in`. |
1471
1471
|**name**| Required. The name of the variable that represents the query results in function code. |
1472
1472
|**commandText**| Required. The MySQL query command or name of the stored procedure executed by the binding. |
1473
-
|**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). |
1473
+
|**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). |
1474
1474
|**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. |
1475
1475
|**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 (`=`). |
1476
1476
@@ -1489,7 +1489,7 @@ The following table explains the binding configuration properties that you set i
1489
1489
|**direction**| Required. Must be set to `in`. |
1490
1490
|**name**| Required. The name of the variable that represents the query results in function code. |
1491
1491
|**commandText**| Required. The MySQL query command or name of the stored procedure executed by the binding. |
1492
-
|**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). |
1492
+
|**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). |
1493
1493
|**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. |
1494
1494
|**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 (`=`). |
1495
1495
@@ -1503,7 +1503,7 @@ The following table explains the binding configuration properties that you set i
1503
1503
The attribute's constructor takes the MySQL command text, the command type, parameters, and the connection string setting name. The command can be a MYSQL query with the command type `System.Data.CommandType.Text` or stored procedure name with the command type `System.Data.CommandType.StoredProcedure`. The connection string setting name corresponds to the application setting (in `local.settings.json` for local development) that contains the [connection string](https://dev.mysql.com/doc/connector-net/en/connector-net-connections-string.html) to the Azure Database for MySQL.
1504
1504
1505
1505
1506
-
If an exception occurs when a MySQL input binding is executed then the function code won't execute. This may result in an error code being returned, such as an HTTP trigger returning a 500 error code.
1506
+
If an exception occurs when a MySQL input binding is executed then the function code won't execute. This might result in an error code being returned, such as an HTTP trigger returning a 500 error code.
0 commit comments