|
1 | 1 | # SQL Extension for Azure Functions - Preview
|
2 | 2 |
|
3 |
| -[](https://mssqltools.visualstudio.com/CrossPlatBuildScripts/_build/latest?definitionId=481&branchName=dev) |
| 3 | +[](https://mssqltools.visualstudio.com/CrossPlatBuildScripts/_build/latest?definitionId=481&branchName=main) |
4 | 4 |
|
5 | 5 | ## Introduction
|
6 | 6 |
|
@@ -327,10 +327,10 @@ The following are valid binding types for the result of the query/stored procedu
|
327 | 327 |
|
328 | 328 | - **IEnumerable<T>**: Each element is a row of the result represented by `T`, where `T` is a user-defined POCO, or Plain Old C# Object. `T` should follow the structure of a row in the queried table. See the [Query String](#query-string) section for an example of what `T` should look like.
|
329 | 329 | - **IAsyncEnumerable<T>**: Each element is again a row of the result represented by `T`, but the rows are retrieved "lazily". A row of the result is only retrieved when `MoveNextAsync` is called on the enumerator. This is useful in the case that the query can return a very large amount of rows.
|
330 |
| -- **String**: A JSON string representation of the rows of the result (an example is provided [here](https://github.com/Azure/azure-functions-sql-extension/blob/dev/samples/SqlExtensionSamples/InputBindingSamples/GetProductsString.cs)). |
331 |
| -- **SqlCommand**: The SqlCommand is populated with the appropriate query and parameters, but the associated connection is not opened. It is the responsiblity of the user to execute the command and read in the results. This is useful in the case that the user wants more control over how the results are read in. An example is provided [here](https://github.com/Azure/azure-functions-sql-extension/blob/dev/samples/SqlExtensionSamples/InputBindingSamples/GetProductsSqlCommand.cs). |
| 330 | +- **String**: A JSON string representation of the rows of the result (an example is provided [here](https://github.com/Azure/azure-functions-sql-extension/blob/main/samples/SqlExtensionSamples/InputBindingSamples/GetProductsString.cs)). |
| 331 | +- **SqlCommand**: The SqlCommand is populated with the appropriate query and parameters, but the associated connection is not opened. It is the responsiblity of the user to execute the command and read in the results. This is useful in the case that the user wants more control over how the results are read in. An example is provided [here](https://github.com/Azure/azure-functions-sql-extension/blob/main/samples/SqlExtensionSamples/InputBindingSamples/GetProductsSqlCommand.cs). |
332 | 332 |
|
333 |
| -The repo contains examples of each of these binding types [here](https://github.com/Azure/azure-functions-sql-extension/tree/dev/samples/SqlExtensionSamples/InputBindingSamples). A few examples are also included below. |
| 333 | +The repo contains examples of each of these binding types [here](https://github.com/Azure/azure-functions-sql-extension/tree/main/samples/SqlExtensionSamples/InputBindingSamples). A few examples are also included below. |
334 | 334 |
|
335 | 335 | #### Query String
|
336 | 336 |
|
@@ -468,7 +468,7 @@ The following are valid binding types for the rows to be upserted into the table
|
468 | 468 | - **T**: Used when just one row is to be upserted into the table.
|
469 | 469 | - **T[]**: Each element is again a row of the result represented by `T`. This output binding type requires manual instantiation of the array in the function.
|
470 | 470 |
|
471 |
| -The repo contains examples of each of these binding types [here](https://github.com/Azure/azure-functions-sql-extension/tree/dev/samples/SqlExtensionSamples/OutputBindingSamples). A few examples are also included below. |
| 471 | +The repo contains examples of each of these binding types [here](https://github.com/Azure/azure-functions-sql-extension/tree/main/samples/SqlExtensionSamples/OutputBindingSamples). A few examples are also included below. |
472 | 472 |
|
473 | 473 | #### ICollector<T>/IAsyncCollector<T>
|
474 | 474 |
|
|
0 commit comments