I suppose the answer is "No".... but it would be quite handy if I could call the "Stored Procedure API" from within a UDF...
Is it possible?
If I put code like
var my_statement = snowflake.createStatement( {sqlText: my_sql} );
I get an error "JavaScript execution error: Uncaught ReferenceError: snowflake is not defined in..."