"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const TrimSqlNode_1 = require("./TrimSqlNode");
class WhereSqlNode extends TrimSqlNode_1.default {
    constructor() {
        super();
        this.prefix = 'WHERE';
        this.prefixOverrides = 'AND | OR | AND\n| OR\n| AND\r| OR\r| AND\t| OR\t';
    }
    async getSql(paramMap, parameters = []) {
        const sql = await super.getSql(paramMap, parameters);
        if (this.prefix == sql.trim()) {
            return '';
        }
        return sql;
    }
}
exports.default = WhereSqlNode;
//# sourceMappingURL=WhereSqlNode.js.map