You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dolt currently supports creating stored procedures, but does not yet support creating user-defined functions. Stored procedures allow customers to execute custom SQL code, but not directly return results that can be used in other parts of queries.
While working with a customer on a migration, we found their schema was using multiple user-defined functions to generate values used in other views and queries. Allowing users to create user-defined functions would enable these use cases with Dolt.
We'd like to see this as well, we make use of user-defined functions in some of our migrations, and while it's not too hard to rewrite them to avoid functions, they do make the queries a bit easier to read. (And in general we try to avoid changing old migrations that have already shipped with a release.)
Activity
ecryth commentedon Jun 5, 2024
We'd like to see this as well, we make use of user-defined functions in some of our migrations, and while it's not too hard to rewrite them to avoid functions, they do make the queries a bit easier to read. (And in general we try to avoid changing old migrations that have already shipped with a release.)
gitasmus commentedon Nov 9, 2024
We likewise would appreciate to be able to use the FUNCTIONs of our MySQL database project in dolt.