import{i as e,c as t,S as n}from"./console.worker-CO8W1vBC.js";const r=(r,o,s)=>{var a,c;if(!e(s))throw new Error("The given parameters cannot be used in this function, because they are not cloneable.");o&&t.pendingRequests.set(t.currentContext,o),null==(c=(a=t).postContextMessage)||c.call(a,t.currentTaskId,{api:n.RunSqlIterative,contextId:t.currentContext,code:r,params:s})},o=(r,o,s)=>{var a,c;if(!e(s))throw new Error("The given parameters cannot be used in this function, because they are not cloneable.");o&&t.pendingRequests.set(t.currentContext,o),null==(c=(a=t).postContextMessage)||c.call(a,t.currentTaskId,{api:n.RunSql,contextId:t.currentContext,code:r,params:s})},s=async(e,t)=>new Promise(n=>{o(e,n,t)});export{s as runSql,r as runSqlIterative,o as runSqlWithCallback};
