Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/cotton/mod.ts>QueryBuilder#countDistinct

SQL Database Toolkit for Deno
Latest
method QueryBuilder.prototype.countDistinct
import { QueryBuilder } from "https://deno.land/x/cotton@v0.7.5/mod.ts";

Count records with unique values

Parameters

column: string | string[]

the unique column(s) you want to count

optional
as: string

the alias for the count result