Extremely Popular
Latest
function templateStringToQuery
import { templateStringToQuery } from "https://dotland.deno.dev/x/postgres@v0.19.3/query/query.ts";

This function transforms template string arguments into a query

["SELECT NAME FROM TABLE WHERE ID = ", " AND DATE < "]
// "SELECT NAME FROM TABLE WHERE ID = $1 AND DATE < $2"

Parameters

template: TemplateStringsArray
args: unknown[]
result_type: T