Skip to content
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

Allow dicts to be passed in as keyword args. #109

Merged
merged 2 commits into from
Nov 19, 2024
Merged

Allow dicts to be passed in as keyword args. #109

merged 2 commits into from
Nov 19, 2024

Conversation

scudette
Copy link
Contributor

This is similar to the python ** convention that allows a dict to be expanded into keyword args.

If a parameter is provided as the value ** the function will replace its args with the provided dict.

e.g.

LET Args <= dict(Foo=1)

SELECT * FROM plugin(**=Args)

This is similar to the python ** convention that allows a dict to be
expanded into keyword args.

If a parameter is provided as the value `**` the function will replace
its args with the provided dict.

e.g.

LET Args <= dict(Foo=1)

SELECT * FROM plugin(`**`=Args)
@scudette scudette merged commit 408bc5d into master Nov 19, 2024
3 checks passed
@scudette scudette deleted the kwargs branch November 19, 2024 05:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant