Giter VIP home page Giter VIP logo

sql-bindings-guestbook's Introduction

page_type languages products description urlFragment
sample
tsql
sql
csharp
javascript
powershell
azure
azure-sql-database
dotnet
azure-functions
azure-static-web-apps
Geocoding sample for Azure SQL DB with Azure Functions
azure-sql-functions-geocode

SQL bindings guestbook demo

License

A sample web application where users can leave a message and view recent messages. After entry, messages are send to content moderation. Watch a walkthrough of this sample at https://www.youtube.com/watch?v=01nhp4OAk0c.

guestbook screenshot

Components

  • Azure SQL Database
  • .NET Azure Functions
    • SQL trigger
    • SQL output binding
  • JavaScript Azure Functions
    • SQL output binding
    • SQL input binding
  • PowerShell Azure Functions
    • SQL input binding
  • Azure Static Web App
  • Azure Content Moderation

Contents

File/folder Description
.github/workflows GitHub Actions workflows for the sample to deploy the Functions, the Azure Static Web App, and the SQL project.
apis/js-api JavaScript Azure Functions that serve the Azure Static Web App data.
apis/net-api .NET Azure Function that moderates new guestbook entries.
apis/powershell-api PowerShell Azure Function that runs a stored procedure to check the health of change tracking.
guestbook Azure Static Web App that serves the guestbook UI through a React app.
sql SQL project that contains the database objects (tables, stored procedures).

Architecture

Data Exposed episode

  • JavaScript Azure Functions
    • 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
    • input form for adding guestbook entries
    • list of guestbook entries
    • calls to the JavaScript Azure Functions
  • .NET Azure Function
    • 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
    • timer trigger runs the PowerShell functoion on a schedule
    • SQL input binding runs a stored procedure checking the health of change tracking

architecture diagram

What are SQL bindings?

summary slide on SQL bindings

Learn more at 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

Getting started with the guestbook sample

Instructions are available for setup of local development of this sample in GETTING_STARTED.md.

sql-bindings-guestbook's People

Contributors

dzsquared avatar gewarren avatar microsoft-github-operations[bot] avatar microsoftopensource avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.