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
I'm having a hard time registering a function that could handle this scenario. What I've tried:
db.public.registerFunction({name: "generate_series",args: [DataType.integer,DataType.integer],returns: DataType.integer,// Should be typed to array somehow I guess?implementation: (from: any,to: any)=>{conststart=parseInt(from);conststop=parseInt(to);constresult=[];for(leti=start;i<=stop;i++){result.push(i);}returnresult;},});
Is this possible already? Or are there any missing functionalities in the library to get this to work?
The text was updated successfully, but these errors were encountered:
Consider the following query:
I'm having a hard time registering a function that could handle this scenario. What I've tried:
Is this possible already? Or are there any missing functionalities in the library to get this to work?
The text was updated successfully, but these errors were encountered: