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
Copy file name to clipboardExpand all lines: README.md
+10-14Lines changed: 10 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,11 +4,13 @@
4
4
5
5
## Introduction
6
6
7
-
This repository contains SQL binding extension code as well as a quick start, tutorial, and samples of how to use them. A high level explanation of the bindings is provided below. Additional information for each is in their respective sample sections.
7
+
This repository contains the Azure SQL binding for Azure Functions extension code as well as a quick start tutorial and samples illustrating how to use the binding in different ways. A high level explanation of the bindings is provided below. Additional information for each is in their respective sample sections.
8
8
9
-
-**input binding**: takes a SQL query to run on a provided table and returns the output of the query.
9
+
-**input binding**: takes a SQL query to run and returns the output of the query in the function.
10
10
-**output binding**: takes a list of rows and upserts them into the user table (i.e. If a row doesn't already exist, it is added. If it does, it is updated).
11
11
12
+
Further information on the Azure SQL binding for Azure Functions is also available in the [Azure Functions docs](https://docs.microsoft.com/azure/azure-functions/functions-bindings-azuresql).
13
+
12
14
## Table of Contents
13
15
14
16
-[Azure SQL binding for Azure Functions - Preview](#azure-sql-binding-for-azure-functions---preview)
@@ -59,13 +61,7 @@ A primary key must be set in your SQL table before using the bindings. To do thi
59
61
60
62
### Set Up Local .NET Function App
61
63
62
-
These steps can be done in the CLI, Powershell. Completing this section will allow you to begin using the bindings.
63
-
64
-
1. Add MyGet package feed. If you are running into errors, make sure you have the [.NET sdk](https://dotnet.microsoft.com/download) installed andin your system PATHS.
1. Ensure you have Azure Storage Emulator running. For information on the Azure Storage Emulator, refer [here](https://docs.microsoft.com/azure/storage/common/storage-use-emulator#get-the-storage-emulator)
82
+
1. Ensure you have Azure Storage Emulator running. This is specific to the sample functions in this repository with a non-HTTP trigger. For information on the Azure Storage Emulator, refer to the docs on its use in [functions local development](https://docs.microsoft.com/azure/azure-functions/functions-app-settings#azurewebjobsstorage) and [installation](https://docs.microsoft.com/azure/storage/common/storage-use-emulator#get-the-storage-emulator).
87
83
88
84
1. Get your SqlConnectionString. Your connection string can be found in your SQL database resource by going to the left blade and clicking 'Connection strings'. Copy the Connection String.
89
85
@@ -253,7 +249,7 @@ Note: This tutorial requires that the Azure SQL database is setup as shown in [C
253
249
254
250
### Input Binding
255
251
256
-
The input binding takes four arguments
252
+
The input binding takes four [arguments](https://github.com/Azure/azure-functions-sql-extension/blob/main/src/SqlAttribute.cs):
257
253
258
254
- **CommandText**: Passed as a constructor argument to the binding. Represents either a query string or the name of a stored procedure.
259
255
- **CommandType**: Specifies whether CommandText is a query (`System.Data.CommandType.Text`) or a stored procedure (`System.Data.CommandType.StoredProcedure`)
@@ -394,7 +390,7 @@ public static async Task<IActionResult> Run(
394
390
395
391
The output binding takes a list of rows to be upserted into a user table. If the primary key value of the row already exists in the table, the row is interpreted as an update, meaning that the values of the other columns in the table for that primary key are updated. If the primary key value does not exist in the table, the row is interpreted as an insert. The upserting of the rows is batched by the output binding code.
396
392
397
-
The output binding takes two arguments
393
+
The output binding takes two [arguments](https://github.com/Azure/azure-functions-sql-extension/blob/main/src/SqlAttribute.cs):
398
394
399
395
-**CommandText**: Passed as a constructor argument to the binding. Represents the name of the table into which rows will be upserted.
400
396
-**ConnectionStringSetting**: Specifies the name of the app setting that contains the SQL connection string used to connect to a database. The connection string must follow the format specified [here](https://docs.microsoft.com/dotnet/api/microsoft.data.sqlclient.sqlconnection.connectionstring?view=sqlclient-dotnet-core-2.0).
0 commit comments