@mikro-orm/postgresql 6.2.10-dev.75 → 6.2.10-dev.76
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/PostgreSqlPlatform.d.ts +3 -0
- package/PostgreSqlPlatform.js +7 -0
- package/PostgreSqlSchemaHelper.js +3 -0
- package/index.mjs +1 -0
- package/package.json +3 -3
package/PostgreSqlPlatform.d.ts
CHANGED
|
@@ -58,6 +58,9 @@ export declare class PostgreSqlPlatform extends AbstractSqlPlatform {
|
|
|
58
58
|
getVarcharTypeDeclarationSQL(column: {
|
|
59
59
|
length?: number;
|
|
60
60
|
}): string;
|
|
61
|
+
getCharTypeDeclarationSQL(column: {
|
|
62
|
+
length?: number;
|
|
63
|
+
}): string;
|
|
61
64
|
getBlobDeclarationSQL(): string;
|
|
62
65
|
getJsonDeclarationSQL(): string;
|
|
63
66
|
getSearchJsonPropertyKey(path: string[], type: string | undefined | Type, aliased: boolean, value?: unknown): string;
|
package/PostgreSqlPlatform.js
CHANGED
|
@@ -154,6 +154,12 @@ class PostgreSqlPlatform extends knex_1.AbstractSqlPlatform {
|
|
|
154
154
|
}
|
|
155
155
|
return super.getVarcharTypeDeclarationSQL(column);
|
|
156
156
|
}
|
|
157
|
+
getCharTypeDeclarationSQL(column) {
|
|
158
|
+
if (column.length === -1) {
|
|
159
|
+
return 'char';
|
|
160
|
+
}
|
|
161
|
+
return super.getCharTypeDeclarationSQL(column);
|
|
162
|
+
}
|
|
157
163
|
getBlobDeclarationSQL() {
|
|
158
164
|
return 'bytea';
|
|
159
165
|
}
|
|
@@ -240,6 +246,7 @@ class PostgreSqlPlatform extends knex_1.AbstractSqlPlatform {
|
|
|
240
246
|
'bytea': 'blob',
|
|
241
247
|
'jsonb': 'json',
|
|
242
248
|
'character varying': 'varchar',
|
|
249
|
+
'bpchar': 'character',
|
|
243
250
|
};
|
|
244
251
|
return super.getDefaultMappedType(map[normalizedType] ?? type);
|
|
245
252
|
}
|
package/index.mjs
CHANGED
|
@@ -33,6 +33,7 @@ export const ChangeSet = mod.ChangeSet;
|
|
|
33
33
|
export const ChangeSetComputer = mod.ChangeSetComputer;
|
|
34
34
|
export const ChangeSetPersister = mod.ChangeSetPersister;
|
|
35
35
|
export const ChangeSetType = mod.ChangeSetType;
|
|
36
|
+
export const CharacterType = mod.CharacterType;
|
|
36
37
|
export const Check = mod.Check;
|
|
37
38
|
export const CheckConstraintViolationException = mod.CheckConstraintViolationException;
|
|
38
39
|
export const Collection = mod.Collection;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/postgresql",
|
|
3
|
-
"version": "6.2.10-dev.
|
|
3
|
+
"version": "6.2.10-dev.76",
|
|
4
4
|
"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.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.mjs",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@mikro-orm/knex": "6.2.10-dev.
|
|
61
|
+
"@mikro-orm/knex": "6.2.10-dev.76",
|
|
62
62
|
"pg": "8.12.0",
|
|
63
63
|
"postgres-array": "3.0.2",
|
|
64
64
|
"postgres-date": "2.1.0",
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
"@mikro-orm/core": "^6.2.9"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@mikro-orm/core": "6.2.10-dev.
|
|
71
|
+
"@mikro-orm/core": "6.2.10-dev.76"
|
|
72
72
|
}
|
|
73
73
|
}
|