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