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.sum

MySQL, SQLite, MariaDB, PostgreSQL and MongoDB ORM for Deno
Latest
method Model.sum
import { Model } from "https://deno.land/x/denodb@v1.4.0/lib/model.ts";

Compute the sum of a field's values from all the selected records.

await Flight.sum("flightDuration");

Parameters

field: string