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

add the ability to run sqlpage functions with dynamic contents instead of just literal values #237

Open
lovasoa opened this issue Feb 21, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@lovasoa
Copy link
Owner

lovasoa commented Feb 21, 2024

Today, the following is not supported:

select sqlpage.some_function(my_column) from my_table

It fails with an error saying something like some_function(my_column) is not a valid call. Expected a literal single quoted string..

This is because sqlpage runs all functions before sending the query to the database.

With some engineering, it should be possible to support running the function either before or after the query has run, depending on context, which would be very powerful.

@lovasoa lovasoa added the enhancement New feature or request label Feb 21, 2024
@matthewlarkin
Copy link
Contributor

matthewlarkin commented Feb 23, 2024

This looks promising! 💪

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

2 participants