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

Support custom names for registered functions #458

Closed
simonw opened this issue Jul 28, 2022 · 1 comment
Closed

Support custom names for registered functions #458

simonw opened this issue Jul 28, 2022 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@simonw
Copy link
Owner

simonw commented Jul 28, 2022

In this example:

    @db.register_function
    def reverse_string(s):
        return "".join(reversed(list(s)))

    print(db.execute('select reverse_string("hello")').fetchone()[0])

There's currently no way to over-ride the automatically selected name for the SQL function.

@simonw simonw added the enhancement New feature or request label Jul 28, 2022
@simonw simonw closed this as completed in 1491b66 Jul 28, 2022
@simonw simonw added this to the 3.29 milestone Aug 27, 2022
simonw added a commit that referenced this issue Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant