UNPKG

mysql-rewrapped

Version:

A wrapper for MySQL on node to make querying a database as easy as possible

22 lines (21 loc) 659 B
import Query from "../Query"; export default class Select extends Query { private readonly items; private joinStatement; private isDistinct; private groupItems; private orderItems; private orderAsc; constructor(items: Array<any>); distinct(): this; /** * * @param params join formatted as [{target: target table, from: field on main table, to: field on joining table, type: type of join}] * @returns {Select} */ join(params: Array<any>): this; groupBy(items: Array<string>): this; orderBy(items: Array<string>, asc: boolean): this; toString(): string; exec(cback: Function): void; }