@mikro-orm/postgresql
Advanced tools
+4
-4
| { | ||
| "name": "@mikro-orm/postgresql", | ||
| "version": "4.0.0-alpha.5", | ||
| "version": "4.0.0-alpha.6", | ||
| "description": "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.", | ||
@@ -50,11 +50,11 @@ "main": "index.js", | ||
| "dependencies": { | ||
| "@mikro-orm/knex": "^4.0.0-alpha.5", | ||
| "@mikro-orm/knex": "^4.0.0-alpha.6", | ||
| "pg": "^8.2.1" | ||
| }, | ||
| "devDependencies": { | ||
| "@mikro-orm/core": "^4.0.0-alpha.5" | ||
| "@mikro-orm/core": "^4.0.0-alpha.6" | ||
| }, | ||
| "peerDependencies": { | ||
| "@mikro-orm/core": "^4.0.0-alpha.5" | ||
| "@mikro-orm/core": "^4.0.0-alpha.6" | ||
| } | ||
| } |
@@ -5,7 +5,3 @@ "use strict"; | ||
| const pg_1 = require("pg"); | ||
| const core_1 = require("@mikro-orm/core"); | ||
| const knex_1 = require("@mikro-orm/knex"); | ||
| // eslint-disable-next-line @typescript-eslint/naming-convention | ||
| const TableCompiler_PG = core_1.Utils.requireFrom('knex/lib/dialects/postgres/schema/tablecompiler.js', require.resolve('@mikro-orm/knex')); | ||
| const TableCompiler = core_1.Utils.requireFrom('knex/lib/schema/tablecompiler.js', require.resolve('@mikro-orm/knex')); | ||
| class PostgreSqlConnection extends knex_1.AbstractSqlConnection { | ||
@@ -46,3 +42,4 @@ async connect() { | ||
| const that = this; | ||
| TableCompiler_PG.prototype.addColumns = function (columns, prefix, colCompilers) { | ||
| const { PostgresDialectTableCompiler, TableCompiler } = knex_1.MonkeyPatchable; | ||
| PostgresDialectTableCompiler.prototype.addColumns = function (columns, prefix, colCompilers) { | ||
| if (prefix !== this.alterColumnsPrefix) { | ||
@@ -49,0 +46,0 @@ // base class implementation for normal add |
+1
-0
@@ -152,2 +152,3 @@ <h1 align="center"> | ||
| - [Composite and Foreign Keys as Primary Key](https://mikro-orm.io/composite-keys/) | ||
| - [Filters](https://mikro-orm.io/filters/) | ||
| - [Using `QueryBuilder`](https://mikro-orm.io/query-builder/) | ||
@@ -154,0 +155,0 @@ - [Preloading Deeply Nested Structures via populate](https://mikro-orm.io/nested-populate/) |
406
0.25%38164
-0.59%464
-0.64%