UNPKG

mysql-rewrapped

Version:

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

17 lines (16 loc) 667 B
export default abstract class Query { protected type: string; protected whereStatement: string; protected whereParams: Array<string>; protected queryParams: Array<string>; protected tableName: string | undefined; protected static safeOperators: Array<string>; constructor(type: string); table(table: string): Query; where(key: string, value: Array<any> | any, operator: string): Query; orWhere(key: string, value: Array<any> | any, operator: string): Query; andWhere(key: string, value: Array<any> | any, operator: string): Query; private parseWhere; exec(cback: Function): void; abstract toString(): string; }