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

x/cotton/mod.ts>QueryBuilder#order

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

Add an "order by" clause to the query.

Parameters

column: string

Table field

optional
direction: OrderDirection = [UNSUPPORTED]

"ASC" or "DESC"