UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript and ES2023+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.

17 lines (16 loc) 307 B
/** * Special object that defines order condition for ORDER BY in sql. * * @example * { * "name": "ASC", * "id": "DESC" * } * */ export type OrderByCondition = { [columnName: string]: ("ASC" | "DESC") | { order: "ASC" | "DESC"; nulls?: "NULLS FIRST" | "NULLS LAST"; }; };