@mikro-orm/postgresql 7.0.0-dev.94 → 7.0.0-dev.98
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.d.ts +1 -1
- package/PostgreSqlConnection.js +1 -1
- package/PostgreSqlDriver.d.ts +5 -2
- package/PostgreSqlDriver.js +6 -1
- package/PostgreSqlMikroORM.d.ts +1 -1
- package/PostgreSqlPlatform.d.ts +1 -1
- package/PostgreSqlPlatform.js +1 -1
- package/PostgreSqlSchemaHelper.d.ts +1 -1
- package/PostgreSqlSchemaHelper.js +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/package.json +3 -3
- package/raw.d.ts +1 -1
- package/raw.js +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PoolConfig } from 'pg';
|
|
2
2
|
import { PostgresDialect } from 'kysely';
|
|
3
|
-
import { AbstractSqlConnection } from '@mikro-orm/
|
|
3
|
+
import { AbstractSqlConnection } from '@mikro-orm/sql';
|
|
4
4
|
export declare class PostgreSqlConnection extends AbstractSqlConnection {
|
|
5
5
|
createKyselyDialect(overrides: PoolConfig): PostgresDialect;
|
|
6
6
|
mapOptions(overrides: PoolConfig): PoolConfig;
|
package/PostgreSqlConnection.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Pool, TypeOverrides } from 'pg';
|
|
|
2
2
|
import Cursor from 'pg-cursor';
|
|
3
3
|
import { PostgresDialect } from 'kysely';
|
|
4
4
|
import array from 'postgres-array';
|
|
5
|
-
import { AbstractSqlConnection, Utils } from '@mikro-orm/
|
|
5
|
+
import { AbstractSqlConnection, Utils } from '@mikro-orm/sql';
|
|
6
6
|
export class PostgreSqlConnection extends AbstractSqlConnection {
|
|
7
7
|
createKyselyDialect(overrides) {
|
|
8
8
|
const options = this.mapOptions(overrides);
|
package/PostgreSqlDriver.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import type { Configuration } from '@mikro-orm/core';
|
|
2
|
-
import { AbstractSqlDriver } from '@mikro-orm/
|
|
1
|
+
import type { Configuration, Constructor } from '@mikro-orm/core';
|
|
2
|
+
import { AbstractSqlDriver } from '@mikro-orm/sql';
|
|
3
3
|
import { PostgreSqlConnection } from './PostgreSqlConnection.js';
|
|
4
|
+
import { PostgreSqlMikroORM } from './PostgreSqlMikroORM.js';
|
|
4
5
|
export declare class PostgreSqlDriver extends AbstractSqlDriver<PostgreSqlConnection> {
|
|
5
6
|
constructor(config: Configuration);
|
|
7
|
+
/** @inheritDoc */
|
|
8
|
+
getORMClass(): Constructor<PostgreSqlMikroORM>;
|
|
6
9
|
}
|
package/PostgreSqlDriver.js
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
|
-
import { AbstractSqlDriver } from '@mikro-orm/
|
|
1
|
+
import { AbstractSqlDriver } from '@mikro-orm/sql';
|
|
2
2
|
import { PostgreSqlConnection } from './PostgreSqlConnection.js';
|
|
3
3
|
import { PostgreSqlPlatform } from './PostgreSqlPlatform.js';
|
|
4
|
+
import { PostgreSqlMikroORM } from './PostgreSqlMikroORM.js';
|
|
4
5
|
export class PostgreSqlDriver extends AbstractSqlDriver {
|
|
5
6
|
constructor(config) {
|
|
6
7
|
super(config, new PostgreSqlPlatform(), PostgreSqlConnection, ['kysely', 'pg']);
|
|
7
8
|
}
|
|
9
|
+
/** @inheritDoc */
|
|
10
|
+
getORMClass() {
|
|
11
|
+
return PostgreSqlMikroORM;
|
|
12
|
+
}
|
|
8
13
|
}
|
package/PostgreSqlMikroORM.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type AnyEntity, type EntityClass, type EntitySchema, MikroORM, type Options, type IDatabaseDriver, type EntityManager, type EntityManagerType } from '@mikro-orm/core';
|
|
2
|
-
import type { SqlEntityManager } from '@mikro-orm/
|
|
2
|
+
import type { SqlEntityManager } from '@mikro-orm/sql';
|
|
3
3
|
import { PostgreSqlDriver } from './PostgreSqlDriver.js';
|
|
4
4
|
export type PostgreSqlOptions<EM extends SqlEntityManager<PostgreSqlDriver> = SqlEntityManager<PostgreSqlDriver>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]> = Options<PostgreSqlDriver, EM, Entities>;
|
|
5
5
|
export declare function definePostgreSqlConfig<EM extends SqlEntityManager<PostgreSqlDriver> = SqlEntityManager<PostgreSqlDriver>, Entities extends (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]>(options: Options<PostgreSqlDriver, EM, Entities>): Options<PostgreSqlDriver, EM, Entities>;
|
package/PostgreSqlPlatform.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type IPostgresInterval } from 'postgres-interval';
|
|
2
2
|
import { type Configuration, type EntityProperty, type IsolationLevel, type SimpleColumnMeta, Type } from '@mikro-orm/core';
|
|
3
|
-
import { AbstractSqlPlatform, type IndexDef, PostgreSqlNativeQueryBuilder } from '@mikro-orm/
|
|
3
|
+
import { AbstractSqlPlatform, type IndexDef, PostgreSqlNativeQueryBuilder } from '@mikro-orm/sql';
|
|
4
4
|
import { PostgreSqlSchemaHelper } from './PostgreSqlSchemaHelper.js';
|
|
5
5
|
import { PostgreSqlExceptionConverter } from './PostgreSqlExceptionConverter.js';
|
|
6
6
|
export declare class PostgreSqlPlatform extends AbstractSqlPlatform {
|
package/PostgreSqlPlatform.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Client } from 'pg';
|
|
|
2
2
|
import parseDate from 'postgres-date';
|
|
3
3
|
import PostgresInterval from 'postgres-interval';
|
|
4
4
|
import { ALIAS_REPLACEMENT, ARRAY_OPERATORS, raw, RawQueryFragment, Type, Utils, } from '@mikro-orm/core';
|
|
5
|
-
import { AbstractSqlPlatform, PostgreSqlNativeQueryBuilder } from '@mikro-orm/
|
|
5
|
+
import { AbstractSqlPlatform, PostgreSqlNativeQueryBuilder } from '@mikro-orm/sql';
|
|
6
6
|
import { PostgreSqlSchemaHelper } from './PostgreSqlSchemaHelper.js';
|
|
7
7
|
import { PostgreSqlExceptionConverter } from './PostgreSqlExceptionConverter.js';
|
|
8
8
|
import { FullTextType } from './types/FullTextType.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Dictionary } from '@mikro-orm/core';
|
|
2
|
-
import { SchemaHelper, type AbstractSqlConnection, type CheckDef, type Column, type DatabaseSchema, type DatabaseTable, type ForeignKey, type IndexDef, type Table, type TableDifference } from '@mikro-orm/
|
|
2
|
+
import { SchemaHelper, type AbstractSqlConnection, type CheckDef, type Column, type DatabaseSchema, type DatabaseTable, type ForeignKey, type IndexDef, type Table, type TableDifference } from '@mikro-orm/sql';
|
|
3
3
|
export declare class PostgreSqlSchemaHelper extends SchemaHelper {
|
|
4
4
|
static readonly DEFAULT_VALUES: {
|
|
5
5
|
'now()': string[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumType, Type, Utils, DeferMode } from '@mikro-orm/core';
|
|
2
|
-
import { SchemaHelper, } from '@mikro-orm/
|
|
2
|
+
import { SchemaHelper, } from '@mikro-orm/sql';
|
|
3
3
|
export class PostgreSqlSchemaHelper extends SchemaHelper {
|
|
4
4
|
static DEFAULT_VALUES = {
|
|
5
5
|
'now()': ['now()', 'current_timestamp'],
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
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.98",
|
|
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,7 +50,7 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@mikro-orm/
|
|
53
|
+
"@mikro-orm/sql": "7.0.0-dev.98",
|
|
54
54
|
"pg": "8.16.3",
|
|
55
55
|
"pg-cursor": "2.15.3",
|
|
56
56
|
"postgres-array": "3.0.4",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"kysely": "0.28.8"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@mikro-orm/core": "7.0.0-dev.
|
|
65
|
+
"@mikro-orm/core": "7.0.0-dev.98",
|
|
66
66
|
"kysely": "*"
|
|
67
67
|
}
|
|
68
68
|
}
|
package/raw.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnyString, type Dictionary, type EntityKey, type RawQueryFragment, type QueryBuilder } from '@mikro-orm/
|
|
1
|
+
import { type AnyString, type Dictionary, type EntityKey, type RawQueryFragment, type QueryBuilder } from '@mikro-orm/sql';
|
|
2
2
|
import type { SelectQueryBuilder } from 'kysely';
|
|
3
3
|
/**
|
|
4
4
|
* Creates raw SQL query fragment that can be assigned to a property or part of a filter. This fragment is represented
|
package/raw.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { raw as raw_, Utils } from '@mikro-orm/
|
|
1
|
+
import { raw as raw_, Utils } from '@mikro-orm/sql';
|
|
2
2
|
/**
|
|
3
3
|
* Creates raw SQL query fragment that can be assigned to a property or part of a filter. This fragment is represented
|
|
4
4
|
* by `RawQueryFragment` class instance that can be serialized to a string, so it can be used both as an object value
|