-
Notifications
You must be signed in to change notification settings - Fork 525
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Invoke custom commands from custom proc/txn (#597)
Adds ability to invoke custom raw string commands and object commands from within custom procedures and transactions. New APIs in CustomFunctions to invoke custom commands from custom procedures and transactions CustomProcedure registration updated to take in a delegate similar to custom transaction registration RespServerSession reference added to CustomFunctions to enable parsing of custom commands and invoking underlying API Sample custom procedure and transaction that invoke custom raw string and object commands Corresponding tests. * Invoke custom raw string cmd from custom proc/txn * Support cmd name matching * API changes. * Added custom object command support. * Cleanup. * Updated tests. * Format fix. * Added tests. * Unified API. Added test for invalid command. * Fixed formatting. * Merged latest changes. Moved custom procs, txn to test project. * Separate parsing to a separate API to avoid parsing in the hot path. * Renamed to CustomProcedureFactory * Made session maps as private. * Adding an additional parse state for custom commands use --------- Co-authored-by: Tal Zaccai <talzacc@microsoft.com>
- Loading branch information
Showing
21 changed files
with
417 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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.