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
Hi @nettofarah , this is a super useful tool. Do you know if it would be possible to generate types for functions that return a table? Like for example:
CREATEFUNCTIONget_groups()
RETURNS TABLE (
group_id integer,
group_name text
)
LANGUAGE sql
AS $$
-- SELECT ...
$$;
Hey, @joaopaulobdac. Thanks for the suggestion.
This is the first time I hear about functions that return tables.
Would you like to start a pull request? I'm happy to help out any way I can. Maybe start with an unit/integration test, and I could help fill in the blanks with some implementation code?
Yeah! I will be occupied in january because I have a couple of important exams in the upcoming weeks but after that I can start. You can use this type of function similarly to a view, with the benefit of being able to pass parameters to it.
Hi @nettofarah , this is a super useful tool. Do you know if it would be possible to generate types for functions that return a table? Like for example:
I would expect it to generate:
The text was updated successfully, but these errors were encountered: