"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Dialect_1 = require("./Dialect");
class MySQLDialect extends Dialect_1.default {
    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.default = MySQLDialect;
//# sourceMappingURL=MySQLDialect.js.map