"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PostgresDialect = void 0;
const Dialect_1 = require("./Dialect");
class PostgresDialect extends Dialect_1.Dialect {
    getPageSql(sql, boundSql, offset, limit) {
        boundSql.addParameter(limit);
        boundSql.addParameter(offset);
        return sql + ' limit ? offset ?';
    }
    match(dataSource) {
        const dialect = dataSource.options['_dialect'];
        return dialect === 'postgres';
    }
}
exports.PostgresDialect = PostgresDialect;
//# sourceMappingURL=PostgresDialect.js.map