dfp-lib
Version:
This project hosts the Node.JS client library for the SOAP-based DFP API at Google.
36 lines (35 loc) • 1.02 kB
TypeScript
import { Statement } from '../soap/statement';
export declare class StatementBuilder {
static SUGGESTED_PAGE_LIMIT: number;
private static SELECT;
private static FROM;
private static WHERE;
private static LIMIT;
private static OFFSET;
private static ORDER_BY;
private _select;
private _from;
private _where;
private _limit;
private _offset;
private _orderBy;
private valueMap;
constructor();
withBindVariableValue(key: string, value: any): this;
toStatement(): Statement;
private static removeKeyword(clause, keyword);
select(columns: string): this;
from(table: string): this;
where(conditions: string): this;
limit(count: number): this;
offset(count: number): this;
increaseOffsetBy(amount: number): this;
getOffset(): number;
removeLimitAndOffset(): this;
orderBy(orderBy: string): this;
getBindVariableMap(): {
[id: string]: any;
};
private validateQuery();
private buildQuery();
}