Module

x/denodb/mod.ts>Model.count

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Latest
method Model.count
import { Model } from "https://dotland.deno.dev/x/denodb@v1.4.0/mod.ts";

Count the number of records of a model or filtered by a field name.

await Flight.count();

await Flight.where("destination", "Dublin").count();

Parameters

optional
field = [UNSUPPORTED]