Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dzsquared/sqlbindings-guestbook-demo
Sample guestbook web app built on Azure SQL Database and Azure Functions with SQL bindings and SQL trigger
https://github.com/dzsquared/sqlbindings-guestbook-demo
azure-functions azure-sql sql-server
Last synced: about 1 month ago
JSON representation
Sample guestbook web app built on Azure SQL Database and Azure Functions with SQL bindings and SQL trigger
- Host: GitHub
- URL: https://github.com/dzsquared/sqlbindings-guestbook-demo
- Owner: dzsquared
- License: mit
- Created: 2022-11-11T18:03:06.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T23:35:44.000Z (about 2 years ago)
- Last Synced: 2024-11-07T08:27:32.600Z (3 months ago)
- Topics: azure-functions, azure-sql, sql-server
- Language: JavaScript
- Homepage: https://github.com/Azure-Samples/sql-bindings-guestbook
- Size: 708 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SQL bindings guestbook demo
A sample application where users can leave a message and view recent messages. After entry, messages are send to content moderation.
## Components
- Azure SQL Database
- .NET Azure Functions
- SQL trigger
- SQL output binding
- JavaScript Azure Functions
- SQL output binding
- SQL input binding
- Azure Static Web App
## What are SQL bindings?
![summary slide on SQL bindings](images/sqlbindings-summary.png)
Learn more at [https://aka.ms/sqlbindings](https://aka.ms/sqlbindings).
- Azure Functions can authenticate to Azure SQL Database with Azure AD Managed Identity
- Configure SQL bindings with a connection string and T-SQL query, stored procedure name, or table name
- SQL bindings are currently in preview for .NET, JavaScript, Python, PowerShell, and Java Azure Functions
- SQL trigger is currently in preview for .NET Azure Functions
## Architecture![architecture diagram](images/architecture.png)
- [JavaScript Azure Functions](apis/js-api/)
- lists some entries from the app.Entry table (SQL input binding)
- add guestbook entry for to app.Entry table (SQL output binding)
- [Azure Static Web App](guestbook/)
- input form for adding guestbook entries
- list of guestbook entries
- calls to the JavaScript Azure Functions
- [.NET Azure Function](apis/net-api/)
- SQL trigger on changes in app.Entry table
- sends newly inserted rows to Azure Content Moderation
- SQL output binding writes moderation results to app.Moderation table
- SQL output binding updates to app.Entry table
- [PowerShell Azure Function](apis/powershell-api/)
- timer trigger runs the PowerShell functoion on a schedule
- SQL input binding runs a stored procedure checking the health of change tracking