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.

14 lines (13 loc) 586 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PostgreSqlQueryCompiler = void 0; const MonkeyPatchable_1 = require("../../MonkeyPatchable"); class PostgreSqlQueryCompiler extends MonkeyPatchable_1.MonkeyPatchable.PostgresQueryCompiler { _lockingClause(lockMode) { const tables = this.single.lockTables || []; return lockMode + (tables.length ? ' of ' + tables.filter(Boolean).map((table) => this.formatter.wrap(table)).join(', ') : ''); } } exports.PostgreSqlQueryCompiler = PostgreSqlQueryCompiler;