import { pgSql } from "https://deno.land/x/windmill@v1.67.0/pg.ts";
deno-postgres client API is very flexible: https://deno.land/x/postgres@v0.17.0/mod.ts?s=QueryClient
Examples
// Prepared Statements
// Prepared Statements
const { rows } = await pgSql(db)`SELECT ID, NAME FROM CLIENTS WHERE ID = ${id}`;
Parameters
db: Resource<"postgresql">
the PostgreSQL resource to run sql query for