UNPKG

simplifield-sql

Version:

A simplifield sql package that makes your work more easier, simpler and smarter!.

16 lines (15 loc) 353 B
/** * @description This function is used to select all rows from the table * @returns Selected Data as Promise Array * @example * await db.selectAll("users"); * // output: [{ * // id: 1, * // name: "John Doe" * // }, { * // id: 2, * // name: "María" * // }] * */ export default function (table: string, condetions?: {}): Promise<unknown>;