-
Notifications
You must be signed in to change notification settings - Fork 21
MySql Changes for JS #319
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
hallvictoria
merged 8 commits into
Azure:v4.x
from
guptaheena:heenagupta/jsChangesForMySql
Mar 5, 2025
Merged
MySql Changes for JS #319
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
814fb60
mysql changes
guptaheena 573c22a
fix indentation
guptaheena 8e97084
fix indentation
guptaheena 9067a53
fix indentation
guptaheena b1f8082
fix indentation
guptaheena ac4f9c0
Fix comment formatting in InvocationContext.d.ts
guptaheena 98f13c0
Update link to MySQL trigger documentation
guptaheena 4828583
Merge branch 'v4.x' into heenagupta/jsChangesForMySql
hallvictoria File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,3 +22,7 @@ export enum SqlChangeOperation { | |
Update = 1, | ||
Delete = 2, | ||
} | ||
|
||
export enum MySqlChangeOperation { | ||
Update = 0, | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
import { FunctionInput, FunctionOptions, FunctionOutput, FunctionResult, FunctionTrigger } from './index'; | ||
import { InvocationContext } from './InvocationContext'; | ||
|
||
export type MySqlHandler = (changes: MySqlChange[], context: InvocationContext) => FunctionResult; | ||
|
||
export interface MySqlFunctionOptions extends MySqlTriggerOptions, Partial<FunctionOptions> { | ||
handler: MySqlHandler; | ||
|
||
trigger?: MySqlTrigger; | ||
} | ||
|
||
export interface MySqlTriggerOptions { | ||
/** | ||
* The name of the table monitored by the trigger. | ||
*/ | ||
tableName: string; | ||
|
||
/** | ||
* An app setting (or environment variable) with the connection string for the database containing the table monitored for changes | ||
*/ | ||
connectionStringSetting: string; | ||
} | ||
export type MySqlTrigger = FunctionTrigger & MySqlTriggerOptions; | ||
|
||
export interface MySqlChange { | ||
Item: unknown; | ||
Operation: MySqlChangeOperation; | ||
} | ||
|
||
export enum MySqlChangeOperation { | ||
Update = 0, | ||
} | ||
|
||
export interface MySqlInputOptions { | ||
/** | ||
* The Transact-SQL query command or name of the stored procedure executed by the binding. | ||
*/ | ||
commandText: string; | ||
|
||
/** | ||
* The command type value | ||
*/ | ||
commandType: 'Text' | 'StoredProcedure'; | ||
|
||
/** | ||
* An app setting (or environment variable) with the connection string for the database against which the query or stored procedure is being executed | ||
*/ | ||
connectionStringSetting: string; | ||
|
||
/** | ||
* Zero or more parameter values passed to the command during execution as a single string. | ||
* Must follow the format @param1=param1,@param2=param2. | ||
* Neither the parameter name nor the parameter value can contain a comma (,) or an equals sign (=). | ||
*/ | ||
parameters?: string; | ||
} | ||
export type MySqlInput = FunctionInput & MySqlInputOptions; | ||
|
||
export interface MySqlOutputOptions { | ||
/** | ||
* The name of the table being written to by the binding. | ||
*/ | ||
commandText: string; | ||
|
||
/** | ||
* An app setting (or environment variable) with the connection string for the database to which data is being written | ||
*/ | ||
connectionStringSetting: string; | ||
} | ||
export type MySqlOutput = FunctionOutput & MySqlOutputOptions; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.