"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SqliteDialect = void 0;
const Dialect_1 = require("./Dialect");
class SqliteDialect 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 === 'sqlite';
    }
}
exports.SqliteDialect = SqliteDialect;
