"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WhereSqlNode = void 0;
const TrimSqlNode_1 = require("./TrimSqlNode");
class WhereSqlNode extends TrimSqlNode_1.TrimSqlNode {
    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.WhereSqlNode = WhereSqlNode;
//# sourceMappingURL=WhereSqlNode.js.map