@mikro-orm/postgresql 7.0.0-dev.8 → 7.0.0-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/PostgreSqlConnection.js
CHANGED
|
@@ -14,9 +14,8 @@ export class PostgreSqlConnection extends AbstractSqlConnection {
|
|
|
14
14
|
mapOptions(overrides) {
|
|
15
15
|
const ret = { ...this.getConnectionOptions() };
|
|
16
16
|
const pool = this.config.get('pool');
|
|
17
|
-
ret
|
|
18
|
-
ret
|
|
19
|
-
ret.idleTimeoutMillis = pool?.idleTimeoutMillis;
|
|
17
|
+
Utils.defaultValue(ret, 'max', pool?.max);
|
|
18
|
+
Utils.defaultValue(ret, 'idleTimeoutMillis', pool?.idleTimeoutMillis);
|
|
20
19
|
// use `select typname, oid, typarray from pg_type order by oid` to get the list of OIDs
|
|
21
20
|
const types = new TypeOverrides();
|
|
22
21
|
[
|
|
@@ -250,10 +250,14 @@ export class PostgreSqlSchemaHelper extends SchemaHelper {
|
|
|
250
250
|
if (row.schema_name && row.schema_name !== this.platform.getDefaultSchemaName()) {
|
|
251
251
|
name = row.schema_name + '.' + name;
|
|
252
252
|
}
|
|
253
|
+
let items = row.enum_value;
|
|
254
|
+
if (!Array.isArray(items)) {
|
|
255
|
+
items = this.platform.unmarshallArray(row.enum_value);
|
|
256
|
+
}
|
|
253
257
|
o[name] = {
|
|
254
258
|
name: row.enum_name,
|
|
255
259
|
schema: row.schema_name,
|
|
256
|
-
items
|
|
260
|
+
items,
|
|
257
261
|
};
|
|
258
262
|
return o;
|
|
259
263
|
}, {});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/postgresql",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "7.0.0-dev.
|
|
4
|
+
"version": "7.0.0-dev.9",
|
|
5
5
|
"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.",
|
|
6
6
|
"exports": {
|
|
7
7
|
"./package.json": "./package.json",
|
|
@@ -50,18 +50,18 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@mikro-orm/knex": "7.0.0-dev.
|
|
54
|
-
"pg": "8.
|
|
53
|
+
"@mikro-orm/knex": "7.0.0-dev.9",
|
|
54
|
+
"pg": "8.14.1",
|
|
55
55
|
"postgres-array": "3.0.4",
|
|
56
56
|
"postgres-date": "2.1.0",
|
|
57
57
|
"postgres-interval": "4.0.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@mikro-orm/core": "^6.4.
|
|
61
|
-
"kysely": "
|
|
60
|
+
"@mikro-orm/core": "^6.4.13",
|
|
61
|
+
"kysely": "0.28.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@mikro-orm/core": "7.0.0-dev.
|
|
64
|
+
"@mikro-orm/core": "7.0.0-dev.9",
|
|
65
65
|
"kysely": "*"
|
|
66
66
|
}
|
|
67
67
|
}
|