@mikro-orm/oracledb 7.2.0-dev.8 → 7.2.0
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/OraclePlatform.d.ts +2 -2
- package/OraclePlatform.js +2 -1
- package/OracleSchemaHelper.js +0 -1
- package/README.md +1 -0
- package/package.json +4 -4
package/OraclePlatform.d.ts
CHANGED
|
@@ -105,8 +105,8 @@ export declare class OraclePlatform extends AbstractSqlPlatform {
|
|
|
105
105
|
length?: number;
|
|
106
106
|
}): string;
|
|
107
107
|
usesCascadeStatement(): boolean;
|
|
108
|
-
getSearchJsonPropertyKey(path: string[], type: string, aliased: boolean, value?: unknown): string;
|
|
109
|
-
processJsonCondition<T extends object>(o: FilterQuery<T>, value: EntityValue<T>, path: EntityKey<T>[], alias: boolean): FilterQuery<T>;
|
|
108
|
+
getSearchJsonPropertyKey(path: string[], type: string, aliased: boolean | string, value?: unknown): string;
|
|
109
|
+
processJsonCondition<T extends object>(o: FilterQuery<T>, value: EntityValue<T>, path: EntityKey<T>[], alias: boolean | string): FilterQuery<T>;
|
|
110
110
|
getJsonArrayFromSQL(column: string, alias: string, properties: {
|
|
111
111
|
name: string;
|
|
112
112
|
type: string;
|
package/OraclePlatform.js
CHANGED
|
@@ -205,7 +205,8 @@ export class OraclePlatform extends AbstractSqlPlatform {
|
|
|
205
205
|
}
|
|
206
206
|
getSearchJsonPropertyKey(path, type, aliased, value) {
|
|
207
207
|
const [a, ...b] = path;
|
|
208
|
-
const
|
|
208
|
+
const alias = typeof aliased === 'string' ? aliased : ALIAS_REPLACEMENT;
|
|
209
|
+
const root = this.quoteIdentifier(aliased ? `${alias}.${a}` : a);
|
|
209
210
|
if (b.length === 0) {
|
|
210
211
|
return raw(`json_equal(${root}, json(?))`, [value]);
|
|
211
212
|
}
|
package/OracleSchemaHelper.js
CHANGED
|
@@ -408,7 +408,6 @@ export class OracleSchemaHelper extends SchemaHelper {
|
|
|
408
408
|
const tableName = parts.pop();
|
|
409
409
|
const schemaName = parts.pop();
|
|
410
410
|
const name = (schemaName && schemaName !== this.platform.getDefaultSchemaName() ? schemaName + '.' : '') + tableName;
|
|
411
|
-
const quotedName = this.quote(name);
|
|
412
411
|
// indexes need to be first dropped to be able to change a column type
|
|
413
412
|
const changedTypes = Object.values(tableDiff.changedColumns).filter(col => col.changedProperties.has('type'));
|
|
414
413
|
for (const col of changedTypes) {
|
package/README.md
CHANGED
|
@@ -24,6 +24,7 @@ npm install @mikro-orm/mysql # MySQL
|
|
|
24
24
|
npm install @mikro-orm/mariadb # MariaDB
|
|
25
25
|
npm install @mikro-orm/sqlite # SQLite
|
|
26
26
|
npm install @mikro-orm/libsql # libSQL / Turso
|
|
27
|
+
npm install @mikro-orm/sql-js # sql.js (in-memory SQLite in WASM)
|
|
27
28
|
npm install @mikro-orm/mongodb # MongoDB
|
|
28
29
|
npm install @mikro-orm/mssql # MS SQL Server
|
|
29
30
|
npm install @mikro-orm/oracledb # Oracle
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/oracledb",
|
|
3
|
-
"version": "7.2.0
|
|
3
|
+
"version": "7.2.0",
|
|
4
4
|
"description": "TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, PostgreSQL, SQLite, MSSQL and Oracle databases.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"data-mapper",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"copy": "node ../../scripts/copy.mjs"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@mikro-orm/sql": "7.2.0
|
|
45
|
+
"@mikro-orm/sql": "7.2.0",
|
|
46
46
|
"kysely": "0.29.5",
|
|
47
47
|
"oracledb": "7.0.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@mikro-orm/core": "^7.
|
|
50
|
+
"@mikro-orm/core": "^7.2.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@mikro-orm/core": "7.2.0
|
|
53
|
+
"@mikro-orm/core": "7.2.0"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">= 22.17.0"
|