@mikro-orm/postgresql 6.4.17-dev.29 → 6.4.17-dev.30

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.
@@ -75,7 +75,9 @@ export declare class PostgreSqlPlatform extends AbstractSqlPlatform {
75
75
  getJsonDeclarationSQL(): string;
76
76
  getSearchJsonPropertyKey(path: string[], type: string | undefined | Type, aliased: boolean, value?: unknown): string;
77
77
  getJsonIndexDefinition(index: IndexDef): string[];
78
- quoteIdentifier(id: string, quote?: string): string;
78
+ quoteIdentifier(id: string | {
79
+ toString: () => string;
80
+ }, quote?: string): string;
79
81
  escape(value: any): string;
80
82
  private pad;
81
83
  /** @internal */
@@ -247,7 +247,7 @@ class PostgreSqlPlatform extends knex_1.AbstractSqlPlatform {
247
247
  });
248
248
  }
249
249
  quoteIdentifier(id, quote = '"') {
250
- return `${quote}${id.replace('.', `${quote}.${quote}`)}${quote}`;
250
+ return `${quote}${id.toString().replace('.', `${quote}.${quote}`)}${quote}`;
251
251
  }
252
252
  escape(value) {
253
253
  if (typeof value === 'string') {
package/index.mjs CHANGED
@@ -232,6 +232,7 @@ export const getOnConflictReturningFields = mod.getOnConflictReturningFields;
232
232
  export const helper = mod.helper;
233
233
  export const knex = mod.knex;
234
234
  export const parseJsonSafe = mod.parseJsonSafe;
235
+ export const quote = mod.quote;
235
236
  export const raw = mod.raw;
236
237
  export const ref = mod.ref;
237
238
  export const rel = mod.rel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mikro-orm/postgresql",
3
- "version": "6.4.17-dev.29",
3
+ "version": "6.4.17-dev.30",
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.4.17-dev.29",
61
+ "@mikro-orm/knex": "6.4.17-dev.30",
62
62
  "pg": "8.16.2",
63
63
  "postgres-array": "3.0.4",
64
64
  "postgres-date": "2.1.0",
@@ -68,6 +68,6 @@
68
68
  "@mikro-orm/core": "^6.4.16"
69
69
  },
70
70
  "peerDependencies": {
71
- "@mikro-orm/core": "6.4.17-dev.29"
71
+ "@mikro-orm/core": "6.4.17-dev.30"
72
72
  }
73
73
  }