UNPKG

@mikro-orm/knex

Version:

TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, PostgreSQL and SQLite databases as well as usage with vanilla JavaScript.

18 lines (17 loc) 754 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MySqlKnexDialect = void 0; const MySqlQueryCompiler_1 = require("./MySqlQueryCompiler"); const MySqlColumnCompiler_1 = require("./MySqlColumnCompiler"); const MonkeyPatchable_1 = require("../../MonkeyPatchable"); class MySqlKnexDialect extends MonkeyPatchable_1.MonkeyPatchable.MySqlDialect { queryCompiler() { // eslint-disable-next-line prefer-rest-params return new MySqlQueryCompiler_1.MySqlQueryCompiler(this, ...arguments); } columnCompiler() { // eslint-disable-next-line prefer-rest-params return new MySqlColumnCompiler_1.MySqlColumnCompiler(this, ...arguments); } } exports.MySqlKnexDialect = MySqlKnexDialect;