UNPKG

node-qsb2

Version:

Node.js Query String Builder (QSB) for MySQL/MariaDB, Forked from node-qsb

35 lines (34 loc) 1.22 kB
export = qsb; /** * MySQL Query string builder Ver.2 * forked from node-qsb */ declare class qsb { forceQuery(query: any): this; select(from: any, short?: any, isQuery?: boolean): this; update(table: any, short?: any): this; insert(table: any): this; delete(table: any): this; leftJoin(table: any, short?: any, onClause?: any, isQuery?: boolean): this; rightJoin(table: any, short?: any, onClause?: any, isQuery?: boolean): this; join(table: any, short?: any, onClause?: any, isQuery?: boolean): this; values(cols: any, values: any): this; addValues(values: any): this; get(get: any, alias?: any, isFunc?: boolean): this; getString(str: any): this; set(set: any, value: any): this; where(a: any, b: any, c?: any): this; whereOr(a: any, b: any, c?: any): this; whereString(str: any): this; whereOrString(str: any): this; limit(a: any, b?: any): this; orderBy(col: any, sort: any): this; groupBy(col: any): this; duplicate: (cols: any) => this; duplicateWithValues(cols: any, vals: any): this; build(semicolon?: boolean): this; printObject(): this; printString(): this; returnString(): string; #private; }