@mikro-orm/postgresql 6.4.17-dev.5 → 6.4.17-dev.50

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
@@ -225,12 +225,14 @@ export const compareBuffers = mod.compareBuffers;
225
225
  export const compareObjects = mod.compareObjects;
226
226
  export const createSqlFunction = mod.createSqlFunction;
227
227
  export const defineConfig = mod.defineConfig;
228
+ export const defineEntity = mod.defineEntity;
228
229
  export const equals = mod.equals;
229
230
  export const getOnConflictFields = mod.getOnConflictFields;
230
231
  export const getOnConflictReturningFields = mod.getOnConflictReturningFields;
231
232
  export const helper = mod.helper;
232
233
  export const knex = mod.knex;
233
234
  export const parseJsonSafe = mod.parseJsonSafe;
235
+ export const quote = mod.quote;
234
236
  export const raw = mod.raw;
235
237
  export const ref = mod.ref;
236
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.5",
3
+ "version": "6.4.17-dev.50",
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,8 +58,8 @@
58
58
  "access": "public"
59
59
  },
60
60
  "dependencies": {
61
- "@mikro-orm/knex": "6.4.17-dev.5",
62
- "pg": "8.16.0",
61
+ "@mikro-orm/knex": "6.4.17-dev.50",
62
+ "pg": "8.16.3",
63
63
  "postgres-array": "3.0.4",
64
64
  "postgres-date": "2.1.0",
65
65
  "postgres-interval": "4.0.2"
@@ -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.5"
71
+ "@mikro-orm/core": "6.4.17-dev.50"
72
72
  }
73
73
  }