import { mySql } from "https://deno.land/x/windmill@v1.53.0/mod.ts";
Execute SQL query. For more info check: https://deno.land/x/mysql2@v1.0.6/mod.ts
Examples
Example 1
Example 1
const kind = 'cat';
const { rows } = await mySql(db)`SELECT * from pets WHERE kind = ${kind}`;
console.log(rows);
Parameters
db: Resource<"mysql">
the MySQL resource to run sql query for