-
Notifications
You must be signed in to change notification settings - Fork 951
Add script function flags in the module API #2836
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
Conversation
This commit adds script function flags to the module API, which allows function scripts to specify the function flags programmatically. When the scripting engine compiles the script code can extract the flags from the code and set the flags on the compiled function objects. Signed-off-by: Ricardo Dias <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #2836 +/- ##
============================================
- Coverage 72.46% 72.42% -0.04%
============================================
Files 128 128
Lines 70364 70371 +7
============================================
- Hits 50986 50965 -21
- Misses 19378 19406 +28
🚀 New features to boost your workflow:
|
zuiderkwast
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, but why do scripts need to be able to declare per these flags per function? Do you have a real use case?
These are only used for |
Signed-off-by: Ricardo Dias <[email protected]>
In the FUNCTION LOAD docs, the shebang is used too: What am I missing? |
See "Function Flags" section in https://valkey.io/topics/functions-intro/ Example: |
|
Thank you! Now I understand. The page has this disclaimer:
If you have read this page and found nothing wrong, let's remove the disclaimer? |
Sure, I can proof read it and then remove the disclaimer. |
|
@zuiderkwast is anything still missing or can this PR be approved? |
zuiderkwast
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is anything still missing or can this PR be approved?
Only that I need to take the time to review it. :)
This commit adds script function flags to the module API, which allows function scripts to specify the function flags programmatically.
When the scripting engine compiles the script code can extract the flags from the code and set the flags on the compiled function objects.