in lib/common/utils/statementBuilder.util.ts [173:195]
private buildQuery(): string {
const stringBuilder = [];
this.validateQuery();
if (typeof this.select !== "undefined" && this._select) {
stringBuilder.push(`${this.SELECT} ${this._select}`);
}
if (typeof this.from !== "undefined" && this._from) {
stringBuilder.push(`${this.FROM} ${this._from}`);
}
if (typeof this.where !== "undefined" && this._where) {
stringBuilder.push(`${this.WHERE} ${this._where}`);
}
if (typeof this.orderBy !== "undefined" && this._orderBy) {
stringBuilder.push(`${this.ORDER_BY} ${this._orderBy}`);
}
if (typeof this.limit !== "undefined" && this._limit) {
stringBuilder.push(`${this.LIMIT} ${this._limit}`);
}
if (typeof this.offset !== "undefined" && this._offset) {
stringBuilder.push(`${this.OFFSET} ${this._offset}`);
}
return stringBuilder.join(" ");
}