Skip to main content
Module

x/denodb_esgi/mod.ts>Model.count

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Latest
method Model.count
import { Model } from "https://deno.land/x/denodb_esgi@1.0.15.1/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: string = [UNSUPPORTED]