function countRows
countRows(table: string): Promise<number>

Count all rows in a table. table must be a trusted constant, not input.

Parameters

table: string

Return Type

Promise<number>

Usage

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