CoolFace
Apppublic

AK-21/Graphite-Industrial-Intelligence

sourceHugging Faceupdated 3mo agoView on Hugging Face
0likes
select.d.cts39 linesDownload Raw Back to expressions
1import type { AnyColumn } from "../../column.cjs";2import type { SQL, SQLWrapper } from "../sql.cjs";3/**4 * Used in sorting, this specifies that the given5 * column or expression should be sorted in ascending6 * order. By the SQL standard, ascending order is the7 * default, so it is not usually necessary to specify8 * ascending sort order.9 *10 * ## Examples11 *12 * ```ts13 * // Return cars, starting with the oldest models14 * // and going in ascending order to the newest.15 * db.select().from(cars)16 *   .orderBy(asc(cars.year));17 * ```18 *19 * @see desc to sort in descending order20 */21export declare function asc(column: AnyColumn | SQLWrapper): SQL;22/**23 * Used in sorting, this specifies that the given24 * column or expression should be sorted in descending25 * order.26 *27 * ## Examples28 *29 * ```ts30 * // Select users, with the most recently created31 * // records coming first.32 * db.select().from(users)33 *   .orderBy(desc(users.createdAt));34 * ```35 *36 * @see asc to sort in ascending order37 */38export declare function desc(column: AnyColumn | SQLWrapper): SQL;39