function rowExists
rowExists(
sql: string,
args: InValue[],
): Promise<boolean>

True when the query returns a row. sql should be an existence probe such as SELECT 1 ... LIMIT 1; which columns it selects is ignored.

Parameters

sql: string
args: InValue[]

Return Type

Promise<boolean>

Usage

import { rowExists } from "doc.ts";