Skip to content

Commit 1f20bec

Browse files
committed
Improve Acrolinx score for SQL input
1 parent f997fce commit 1f20bec

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ The following example shows a SQL input binding in a function.json file and a Py
818818

819819
# [v2](#tab/python-v2)
820820

821-
The following is sample python code for the function_app.py file:
821+
The following python code is a sample function_app.py file:
822822

823823
```python
824824
import json
@@ -874,7 +874,7 @@ The following is binding data in the function.json file:
874874

875875
The [configuration](#configuration) section explains these properties.
876876

877-
The following is sample Python code:
877+
The following Python code is a sample `__init__.py` file:
878878

879879

880880
```python
@@ -900,7 +900,7 @@ The following example shows a SQL input binding in a Python function that is [tr
900900

901901
# [v2](#tab/python-v2)
902902

903-
The following is sample python code for the function_app.py file:
903+
The following python code is a sample function_app.py file:
904904

905905
```python
906906
import json
@@ -959,7 +959,7 @@ The following is binding data in the function.json file:
959959

960960
The [configuration](#configuration) section explains these properties.
961961

962-
The following is sample Python code:
962+
The following Python code is a sample `__init__.py` file:
963963

964964

965965
```python
@@ -989,7 +989,7 @@ The stored procedure `dbo.DeleteToDo` must be created on the database. In this e
989989

990990
# [v2](#tab/python-v2)
991991

992-
The following is sample python code for the function_app.py file:
992+
The following python code is a sample function_app.py file:
993993

994994
```python
995995
import json
@@ -1046,7 +1046,7 @@ def get_todo(req: func.HttpRequest, todo: func.SqlRowList) -> func.HttpResponse:
10461046

10471047
The [configuration](#configuration) section explains these properties.
10481048

1049-
The following is sample Python code:
1049+
The following Python code is a sample `__init__.py` file:
10501050

10511051

10521052
```python
@@ -1078,7 +1078,7 @@ The [C# library](functions-dotnet-class-library.md) uses the [SqlAttribute](http
10781078
| **CommandText** | Required. The Transact-SQL query command or name of the stored procedure executed by the binding. |
10791079
| **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. |
10801080
| **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. |
1081-
| **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`. The parameter name and the parameter value cannot contain a comma (`,`) or an equals sign (`=`). |
1081+
| **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`. The parameter name and the parameter value can't contain a comma (`,`) or an equals sign (`=`). |
10821082

10831083
::: zone-end
10841084

@@ -1093,7 +1093,7 @@ In the [Java functions runtime library](/java/api/overview/azure/functions/runti
10931093
| **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. |
10941094
| **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. |
10951095
|**name** | Required. The unique name of the function binding. |
1096-
| **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`. The parameter name and the parameter value cannot contain a comma (`,`) or an equals sign (`=`). |
1096+
| **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`. The parameter name and the parameter value can't contain a comma (`,`) or an equals sign (`=`). |
10971097

10981098
::: zone-end
10991099
::: zone pivot="programming-language-javascript,programming-language-typescript"
@@ -1109,7 +1109,7 @@ The following table explains the properties that you can set on the `options` ob
11091109
| **commandText** | Required. The Transact-SQL query command or name of the stored procedure executed by the binding. |
11101110
| **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 SQL bindings connectivity](./functions-bindings-azure-sql.md#sql-connection-string). |
11111111
| **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. |
1112-
| **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`. The parameter name and the parameter value cannot contain a comma (`,`) or an equals sign (`=`). |
1112+
| **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`. The parameter name and the parameter value can't contain a comma (`,`) or an equals sign (`=`). |
11131113

11141114
# [Model v3](#tab/nodejs-v3)
11151115

@@ -1123,7 +1123,7 @@ The following table explains the binding configuration properties that you set i
11231123
| **commandText** | Required. The Transact-SQL query command or name of the stored procedure executed by the binding. |
11241124
| **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 SQL bindings connectivity](./functions-bindings-azure-sql.md#sql-connection-string). |
11251125
| **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. |
1126-
| **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`. The parameter name and the parameter value cannot contain a comma (`,`) or an equals sign (`=`). |
1126+
| **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`. The parameter name and the parameter value can't contain a comma (`,`) or an equals sign (`=`). |
11271127

11281128
---
11291129

@@ -1141,7 +1141,7 @@ The following table explains the binding configuration properties that you set i
11411141
| **commandText** | Required. The Transact-SQL query command or name of the stored procedure executed by the binding. |
11421142
| **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 SQL bindings connectivity](./functions-bindings-azure-sql.md#sql-connection-string). |
11431143
| **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. |
1144-
| **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`. The parameter name and the parameter value cannot contain a comma (`,`) or an equals sign (`=`). |
1144+
| **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`. The parameter name and the parameter value can't contain a comma (`,`) or an equals sign (`=`). |
11451145
::: zone-end
11461146

11471147

@@ -1155,7 +1155,7 @@ The binding definition includes the SQL command text, the command type, paramete
11551155

11561156
Queries executed by the input binding are [parameterized](/dotnet/api/microsoft.data.sqlclient.sqlparameter) in Microsoft.Data.SqlClient to reduce the risk of [SQL injection](/sql/relational-databases/security/sql-injection) from the parameter values passed into the binding.
11571157

1158-
If an exception occurs when a SQL input binding is executed, then the function code does not execute. This behavior may result in an error code being returned, such as an HTTP trigger returning a 500 error code.
1158+
If an exception occurs when a SQL input binding is executed, then the function code doesn't execute. This behavior may result in an error code being returned, such as an HTTP trigger returning a 500 error code.
11591159

11601160
## Next steps
11611161

0 commit comments

Comments
 (0)