We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 support for var-arg db functions like format or concat.
format
concat
The text was updated successfully, but these errors were encountered:
zio#439: Add support for var-arg db functions
51b11c9
@jczuchnowski can this implementation be a valid solution? (https://github.com/jgoday/zio-sql/tree/feature_variadic_args)
It would allow to call custom procedure/function with N different typed args.
val customFn = variadicFunc[String]("concat_ws") val query = select(customFn(", ", fName, lName)) from customers
A pending improvement could be to allow define variadicFunc with argument type parameters
val customFn = variadicFunc[String, Int, String]("custom_function") val query = select(customFn(name, id)) from table
but I can only imagine implementing this with macros ...
Sorry, something went wrong.
No branches or pull requests
Add support for var-arg db functions like
format
orconcat
.The text was updated successfully, but these errors were encountered: