function rowExistsForIdList
rowExistsForIdList(buildSql: (idsPlaceholders: string) => string): unknown

Build an existence check for "one leading id, matched against a list of ids". The checker binds leadingId to the first ? and expands ids into the IN (...) that buildSql embeds through the placeholder string it is handed. Empty ids runs an empty IN (), which matches nothing.

Parameters

buildSql: (idsPlaceholders: string) => string

Return Type

unknown

Usage

import { rowExistsForIdList } from "docs/database.ts";