sqlf

Fast pgSQL generation for Deno.

test deno doc deno module

import { Pool } from "https://deno.land/x/postgres@v0.15.0/mod.ts";
import * as sqlf from "https://deno.land/x/sqlf/mod.ts";

const pool = new Pool("...");

const [user] = await sqlf
  .selectFrom("users")
  .select("*")
  .where("email", "=", "bob@example.com")
  .limit(1)
  .run(pool);

console.log(user);