Any ideas?
export async function getTables(context: any) {
try {
let connection = await getHyperScaleConnection(context);
const result = await connection.query("SELECT * FROM tables");
return result.rows;
} catch (e) {
console.error(e);
throw e;
}
}
I have to pass context into each thing... i was trying to solve using the method discussed in the documentation