/
ai_sampletext
/
DiplomWork
Обзор
Документация
Войти
/
ai_sampletext
/
DiplomWork
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/drizzle-orm/sql/expressions/select.d.ts
38 строк
1 KB
boolyshareyo
Initial commit
08 июн 2026, 16:00
08 июн 2026, 16:00
6216a29
Код
Авторство
О чём код?
import type { AnyColumn } from "../../column.js"; import type { SQL, SQLWrapper } from "../sql.js"; /** * Used in sorting, this specifies that the given * column or expression should be sorted in ascending * order. By the SQL standard, ascending order is the * default, so it is not usually necessary to specify * ascending sort order. * * ## Examples * * ```ts * // Return cars, starting with the oldest models * // and going in ascending order to the newest. * db.select().from(cars) * .orderBy(asc(cars.year)); * ``` * * @see desc to sort in descending order */ export declare function asc(column: AnyColumn | SQLWrapper): SQL; /** * Used in sorting, this specifies that the given * column or expression should be sorted in descending * order. * * ## Examples * * ```ts * // Select users, with the most recently created * // records coming first. * db.select().from(users) * .orderBy(desc(users.createdAt)); * ``` * * @see asc to sort in ascending order */ export declare function desc(column: AnyColumn | SQLWrapper): SQL;