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://dotland.deno.dev/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