Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pjirsa/sql-sproc-function
https://github.com/pjirsa/sql-sproc-function
Last synced: 8 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/pjirsa/sql-sproc-function
- Owner: pjirsa
- License: mit
- Created: 2023-05-12T15:32:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-26T20:23:57.000Z (over 1 year ago)
- Last Synced: 2024-10-30T00:34:00.736Z (about 2 months ago)
- Language: C#
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SQL with Azure Functions
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/pjirsa/sql-sproc-function)Examples of working with SQL bindings, triggers, and direct ADO.NET connections in Azure Functions. These samples are based on code located in [https://github.com/Azure/azure-functions-sql-extension](https://github.com/Azure/azure-functions-sql-extension).
## Try It
1. Clone, or fork then clone, this repo to your local machine.
2. Ensure Visual Studio is installed, or use Azure Function Core Tools.
3. Add local.settings.json file then add the following content.
```
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated",
"sql_connection": ""
}
}
```
4. Use scripts found in [Database](./Database) folder to create 'Products' and 'ProductsWithIdentity' tables in your database. Insert some sample items to 'Products' table.
5. Add the 'SelectProductsCost' stored procedure in order to test the 'CallSproc' function.
6. Start the function app by debuggin in Visual Studio, or from the command line with `func start`.