Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/denodb/lib/model.ts>Model.count

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Latest
method Model.count
import { Model } from "https://deno.land/x/denodb@v1.4.0/lib/model.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]