Skip to content

Commit 9223551

Browse files
committed
edit pass: azure-database-for-mysql-bindings
1 parent dbf00d0 commit 9223551

File tree

5 files changed

+52
-52
lines changed

5 files changed

+52
-52
lines changed

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ CREATE TABLE Products (
357357
<a id="http-trigger-get-multiple-items-java"></a>
358358
### HTTP trigger, get multiple rows
359359

360-
The following example shows a MySQL input binding in a Java function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query and returns the results in the HTTP response.
360+
The following example shows an Azure Database for MySQL input binding in a Java function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query and returns the results in the HTTP response.
361361

362362
```java
363363
package com.function;
@@ -399,7 +399,7 @@ public class GetProducts {
399399
<a id="http-trigger-look-up-id-from-query-string-java"></a>
400400
### HTTP trigger, get a row by ID from a query string
401401

402-
The following example shows a MySQL input binding in a Java function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query filtered by a parameter from the query string and returns the row in the HTTP response.
402+
The following example shows an Azure Database for MySQL input binding in a Java function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query filtered by a parameter from the query string and returns the row in the HTTP response.
403403

404404
```java
405405
public class GetProductById {
@@ -427,7 +427,7 @@ public class GetProductById {
427427
<a id="http-trigger-delete-one-or-multiple-rows-java"></a>
428428
### HTTP trigger, delete rows
429429

430-
The following example shows a MySQL input binding in a Java function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding executes a stored procedure with input from the HTTP request's query parameter.
430+
The following example shows an Azure Database for MySQL input binding in a Java function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding executes a stored procedure with input from the HTTP request's query parameter.
431431

432432
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.
433433

@@ -490,7 +490,7 @@ CREATE TABLE Products (
490490
<a id="http-trigger-get-multiple-items-javascript"></a>
491491
### HTTP trigger, get multiple rows
492492

493-
The following example shows a MySQL input binding that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query and returns the results in the HTTP response.
493+
The following example shows an Azure Database for MySQL input binding that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query and returns the results in the HTTP response.
494494

495495
::: zone-end
496496

@@ -597,7 +597,7 @@ The following example is binding data in the function.json file:
597597
}
598598
```
599599

600-
The [configuration](#configuration) section explains these properties.
600+
The [Configuration](#configuration) section explains these properties.
601601

602602
The following example is sample JavaScript code:
603603

@@ -622,7 +622,7 @@ module.exports = async function (context, req, products) {
622622
<a id="http-trigger-look-up-id-from-query-string-javascript"></a>
623623
### HTTP trigger, get a row by ID from a query string
624624

625-
The following example shows a MySQL input binding that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query filtered by a parameter from the query string and returns the row in the HTTP response.
625+
The following example shows an Azure Database for MySQL input binding that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query filtered by a parameter from the query string and returns the row in the HTTP response.
626626

627627
::: zone-end
628628
::: zone pivot="programming-language-typescript"
@@ -730,7 +730,7 @@ The following example is binding data in the function.json file:
730730
}
731731
```
732732

733-
The [configuration](#configuration) section explains these properties.
733+
The [Configuration](#configuration) section explains these properties.
734734

735735
The following example is sample JavaScript code:
736736

@@ -754,7 +754,7 @@ module.exports = async function (context, req, products) {
754754
<a id="http-trigger-delete-one-or-multiple-rows-javascript"></a>
755755
### HTTP trigger, delete rows
756756

757-
The following example shows a MySQL input binding that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding executes a stored procedure with input from the HTTP request's query parameter.
757+
The following example shows an Azure Database for MySQL input binding that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding executes a stored procedure with input from the HTTP request's query parameter.
758758

759759
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.
760760

@@ -872,7 +872,7 @@ app.http('httpTrigger1', {
872872
}
873873
```
874874

875-
The [configuration](#configuration) section explains these properties.
875+
The [Configuration](#configuration) section explains these properties.
876876

877877
The following example is sample JavaScript code:
878878

@@ -916,7 +916,7 @@ CREATE TABLE Products (
916916
<a id="http-trigger-get-multiple-items-powershell"></a>
917917
### HTTP trigger, get multiple rows
918918

919-
The following example shows a MySQL input binding in a function.json file and a PowerShell function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query and returns the results in the HTTP response.
919+
The following example shows an Azure Database for MySQL input binding in a function.json file and a PowerShell function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query and returns the results in the HTTP response.
920920

921921
The following example is binding data in the function.json file:
922922

@@ -951,7 +951,7 @@ The following example is binding data in the function.json file:
951951
}
952952
```
953953

954-
The [configuration](#configuration) section explains these properties.
954+
The [Configuration](#configuration) section explains these properties.
955955

956956
The following example is sample PowerShell code for the function in the run.ps1 file:
957957

@@ -971,7 +971,7 @@ Push-OutputBinding -Name response -Value ([HttpResponseContext]@{
971971
<a id="http-trigger-look-up-id-from-query-string-powershell"></a>
972972
### HTTP trigger, get a row by ID from a query string
973973

974-
The following example shows a MySQL input binding in a PowerShell function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query filtered by a parameter from the query string and returns the row in the HTTP response.
974+
The following example shows an Azure Database for MySQL input binding in a PowerShell function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query filtered by a parameter from the query string and returns the row in the HTTP response.
975975

976976
The following example is binding data in the function.json file:
977977

@@ -1007,7 +1007,7 @@ The following example is binding data in the function.json file:
10071007
}
10081008
```
10091009

1010-
The [configuration](#configuration) section explains these properties.
1010+
The [Configuration](#configuration) section explains these properties.
10111011

10121012
The following example is sample PowerShell code for the function in the run.ps1 file:
10131013

@@ -1027,7 +1027,7 @@ Push-OutputBinding -Name response -Value ([HttpResponseContext]@{
10271027
<a id="http-trigger-delete-one-or-multiple-rows-powershell"></a>
10281028
### HTTP trigger, delete rows
10291029

1030-
The following example shows a MySQL input binding in a function.json file and a PowerShell function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding executes a stored procedure with input from the HTTP request's query parameter.
1030+
The following example shows an Azure Database for MySQL input binding in a function.json file and a PowerShell function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding executes a stored procedure with input from the HTTP request's query parameter.
10311031

10321032
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.
10331033

@@ -1072,7 +1072,7 @@ END
10721072
}
10731073
```
10741074

1075-
The [configuration](#configuration) section explains these properties.
1075+
The [Configuration](#configuration) section explains these properties.
10761076

10771077
The following example is sample PowerShell code for the function in the run.ps1 file:
10781078

@@ -1119,7 +1119,7 @@ CREATE TABLE Products (
11191119
<a id="http-trigger-get-multiple-items-python"></a>
11201120
### HTTP trigger, get multiple rows
11211121

1122-
The following example shows a MySQL input binding in a function.json file and a Python function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query and returns the results in the HTTP response.
1122+
The following example shows an Azure Database for MySQL input binding in a function.json file and a Python function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query and returns the results in the HTTP response.
11231123

11241124
# [v2](#tab/python-v2)
11251125

@@ -1185,7 +1185,7 @@ The following example is binding data in the function.json file:
11851185
}
11861186
```
11871187

1188-
The [configuration](#configuration) section explains these properties.
1188+
The [Configuration](#configuration) section explains these properties.
11891189

11901190
The following example is sample Python code:
11911191

@@ -1208,7 +1208,7 @@ def main(req: func.HttpRequest, products: func.MySqlRowList) -> func.HttpRespons
12081208
<a id="http-trigger-look-up-id-from-query-string-python"></a>
12091209
### HTTP trigger, get a row by ID from a query string
12101210

1211-
The following example shows a MySQL input binding in a Python function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query filtered by a parameter from the query string and returns the row in the HTTP response.
1211+
The following example shows an Azure Database for MySQL input binding in a Python function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding reads from a query filtered by a parameter from the query string and returns the row in the HTTP response.
12121212

12131213
# [v2](#tab/python-v2)
12141214

@@ -1276,7 +1276,7 @@ The following example is binding data in the function.json file:
12761276
}
12771277
```
12781278

1279-
The [configuration](#configuration) section explains these properties.
1279+
The [Configuration](#configuration) section explains these properties.
12801280

12811281
The following example is sample Python code:
12821282

@@ -1299,7 +1299,7 @@ def main(req: func.HttpRequest, products: func.MySqlRowList) -> func.HttpRespons
12991299
<a id="http-trigger-delete-one-or-multiple-rows-python"></a>
13001300
### HTTP trigger, delete rows
13011301

1302-
The following example shows a MySQL input binding in a function.json file and a Python function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding executes a stored procedure with input from the HTTP request's query parameter.
1302+
The following example shows an Azure Database for MySQL input binding in a function.json file and a Python function that [an HTTP request triggers](./functions-bindings-http-webhook-trigger.md). The binding executes a stored procedure with input from the HTTP request's query parameter.
13031303

13041304
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.
13051305

@@ -1376,7 +1376,7 @@ def mysql_test(req: func.HttpRequest, products: func.MySqlRowList) -> func.HttpR
13761376
}
13771377
```
13781378

1379-
The [configuration](#configuration) section explains these properties.
1379+
The [Configuration](#configuration) section explains these properties.
13801380

13811381
The following example is sample Python code:
13821382

@@ -1439,7 +1439,7 @@ In the [Java functions runtime library](/java/api/overview/azure/functions/runti
14391439

14401440
# [Model v4](#tab/nodejs-v4)
14411441

1442-
The following table explains the properties that you can set on the `options` object passed to the `input.generic()` method.
1442+
The following table explains the properties that you can set on the `options` object passed to the `input.generic()` method:
14431443

14441444
| Property | Description |
14451445
|---------|----------------------|
@@ -1450,7 +1450,7 @@ The following table explains the properties that you can set on the `options` ob
14501450

14511451
# [Model v3](#tab/nodejs-v3)
14521452

1453-
The following table explains the binding configuration properties that you set in the function.json file.
1453+
The following table explains the binding configuration properties that you set in the function.json file:
14541454

14551455
| Property | Description |
14561456
|---------|----------------------|
@@ -1470,7 +1470,7 @@ The following table explains the binding configuration properties that you set i
14701470

14711471
## Configuration
14721472

1473-
The following table explains the binding configuration properties that you set in the function.json file.
1473+
The following table explains the binding configuration properties that you set in the function.json file:
14741474

14751475
|Property | Description|
14761476
|---------|----------------------|
@@ -1490,7 +1490,7 @@ The following table explains the binding configuration properties that you set i
14901490

14911491
The attribute's constructor takes the MySQL command text, the command type, parameters, and the name of the connection string setting. The command can be a MySQL query with the command type `System.Data.CommandType.Text` or a stored procedure name with the command type `System.Data.CommandType.StoredProcedure`. The name of the connection string setting 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 Azure Database for MySQL.
14921492

1493-
If an exception occurs when a MySQL input binding is executed, the function code stops running. The result might be an error code, such as an HTTP trigger that returns a 500 error code.
1493+
If an exception occurs when an Azure Database for MySQL input binding is executed, the function code stops running. The result might be an error code, such as an HTTP trigger that returns a 500 error code.
14941494

14951495
## Related content
14961496

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ CREATE TABLE Products (
212212
<a id="http-trigger-write-record-to-table-java"></a>
213213
### HTTP trigger, write a record to a table
214214

215-
The following example shows a MySQL output binding in a Java function that adds a record to a table, by using data provided in an HTTP `POST` request as a JSON body. The function takes an additional dependency on the [com.google.code.gson](https://github.com/google/gson) library to parse the JSON body.
215+
The following example shows an Azure Database for MySQL output binding in a Java function that adds a record to a table, by using data provided in an HTTP `POST` request as a JSON body. The function takes an additional dependency on the [com.google.code.gson](https://github.com/google/gson) library to parse the JSON body.
216216
217217
```xml
218218
<dependency>
@@ -292,7 +292,7 @@ CREATE TABLE Products (
292292
<a id="http-trigger-write-records-to-table-javascript"></a>
293293
### HTTP trigger, write records to a table
294294

295-
The following example shows a MySQL output binding that adds records to a table, by using data provided in an HTTP `POST` request as a JSON body.
295+
The following example shows an Azure Database for MySQL output binding that adds records to a table, by using data provided in an HTTP `POST` request as a JSON body.
296296

297297
::: zone-end
298298

@@ -404,7 +404,7 @@ The following example is binding data in the function.json file:
404404
}
405405
```
406406

407-
The [configuration](#configuration) section explains these properties.
407+
The [Configuration](#configuration) section explains these properties.
408408

409409
The following example is sample JavaScript code:
410410

@@ -447,7 +447,7 @@ CREATE TABLE Products (
447447
<a id="http-trigger-write-records-to-table-powershell"></a>
448448
### HTTP trigger, write records to a table
449449

450-
The following example shows a MySQL output binding in a function.json file and a PowerShell function that adds records to a table, by using data provided in an HTTP `POST` request as a JSON body.
450+
The following example shows an Azure Database for MySQL output binding in a function.json file and a PowerShell function that adds records to a table, by using data provided in an HTTP `POST` request as a JSON body.
451451

452452
The following example is binding data in the function.json file:
453453

@@ -481,14 +481,14 @@ The following example is binding data in the function.json file:
481481
}
482482
```
483483

484-
The [configuration](#configuration) section explains these properties.
484+
The [Configuration](#configuration) section explains these properties.
485485

486486
The following example is sample PowerShell code for the function in the run.ps1 file:
487487

488488
```powershell
489489
using namespace System.Net
490490
491-
# Trigger binding data passed in via parameter block
491+
# Trigger binding data passed in via parameter block.
492492
param($Request, $TriggerMetadata)
493493
494494
# Write to the Azure Functions log stream.
@@ -498,7 +498,7 @@ Write-Host "PowerShell function with MySql Output Binding processed a request."
498498
# that have a property matching each of the columns in the table to upsert to.
499499
$req_body = $Request.Body
500500
501-
# Assign the value that you want to pass to the MySql output binding.
501+
# Assign the value that you want to pass to the MySQL output binding.
502502
# The -Name value corresponds to the name property in the function.json file for the binding.
503503
Push-OutputBinding -Name product -Value $req_body
504504
@@ -538,7 +538,7 @@ CREATE TABLE Products (
538538
<a id="http-trigger-write-records-to-table-python"></a>
539539
### HTTP trigger, write records to a table
540540

541-
The following example shows a MySQL output binding in a function.json file and a Python function that adds records to a table, by using data provided in an HTTP `POST` request as a JSON body.
541+
The following example shows an Azure Database for MySQL output binding in a function.json file and a Python function that adds records to a table, by using data provided in an HTTP `POST` request as a JSON body.
542542

543543
# [v2](#tab/python-v2)
544544

@@ -603,7 +603,7 @@ The following example is binding data in the function.json file:
603603
}
604604
```
605605

606-
The [configuration](#configuration) section explains these properties.
606+
The [Configuration](#configuration) section explains these properties.
607607

608608
The following example is sample Python code:
609609

@@ -667,7 +667,7 @@ In the [Java functions runtime library](/java/api/overview/azure/functions/runti
667667

668668
# [Model v4](#tab/nodejs-v4)
669669

670-
The following table explains the properties that you can set on the `options` object passed to the `output.generic()` method.
670+
The following table explains the properties that you can set on the `options` object passed to the `output.generic()` method:
671671

672672
| Property | Description |
673673
|---------|----------------------|
@@ -676,7 +676,7 @@ The following table explains the properties that you can set on the `options` ob
676676

677677
# [Model v3](#tab/nodejs-v3)
678678

679-
The following table explains the binding configuration properties that you set in the function.json file.
679+
The following table explains the binding configuration properties that you set in the function.json file:
680680

681681
| Property | Description |
682682
|---------|----------------------|
@@ -694,7 +694,7 @@ The following table explains the binding configuration properties that you set i
694694

695695
## Configuration
696696

697-
The following table explains the binding configuration properties that you set in the function.json file.
697+
The following table explains the binding configuration properties that you set in the function.json file:
698698

699699
|Property | Description|
700700
|---------|----------------------|

0 commit comments

Comments
 (0)