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