@mikro-orm/core 6.3.5-dev.14 → 6.3.5-dev.16
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/README.md +1 -0
- package/package.json +2 -2
- package/types/UnknownType.d.ts +3 -2
- package/types/UnknownType.js +5 -2
package/README.md
CHANGED
|
@@ -163,6 +163,7 @@ You can find example integrations for some popular frameworks in the [`mikro-orm
|
|
|
163
163
|
- [NextJS + MySQL](https://github.com/jonahallibone/mikro-orm-nextjs)
|
|
164
164
|
- [Accounts.js REST and GraphQL authentication + SQLite](https://github.com/darkbasic/mikro-orm-accounts-example)
|
|
165
165
|
- [Nest + Shopify + PostgreSQL + GraphQL](https://github.com/Cloudshelf/Shopify_CSConnector)
|
|
166
|
+
- [Elysia.js + libSQL + Bun](https://github.com/mikro-orm/elysia-bun-example-app)
|
|
166
167
|
|
|
167
168
|
### JavaScript Examples
|
|
168
169
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
|
-
"version": "6.3.5-dev.
|
|
3
|
+
"version": "6.3.5-dev.16",
|
|
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",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"esprima": "4.0.1",
|
|
65
65
|
"fs-extra": "11.2.0",
|
|
66
66
|
"globby": "11.1.0",
|
|
67
|
-
"mikro-orm": "6.3.5-dev.
|
|
67
|
+
"mikro-orm": "6.3.5-dev.16",
|
|
68
68
|
"reflect-metadata": "0.2.2"
|
|
69
69
|
}
|
|
70
70
|
}
|
package/types/UnknownType.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { StringType } from './StringType';
|
|
2
1
|
import type { EntityProperty } from '../typings';
|
|
3
2
|
import type { Platform } from '../platforms/Platform';
|
|
4
|
-
|
|
3
|
+
import { Type } from './Type';
|
|
4
|
+
export declare class UnknownType extends Type<unknown | null | undefined, unknown | null | undefined> {
|
|
5
5
|
getColumnType(prop: EntityProperty, platform: Platform): string;
|
|
6
6
|
get runtimeType(): string;
|
|
7
7
|
compareAsType(): string;
|
|
8
|
+
ensureComparable(): boolean;
|
|
8
9
|
}
|
package/types/UnknownType.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UnknownType = void 0;
|
|
4
|
-
const
|
|
5
|
-
class UnknownType extends
|
|
4
|
+
const Type_1 = require("./Type");
|
|
5
|
+
class UnknownType extends Type_1.Type {
|
|
6
6
|
getColumnType(prop, platform) {
|
|
7
7
|
return prop.columnTypes?.[0] ?? platform.getVarcharTypeDeclarationSQL(prop);
|
|
8
8
|
}
|
|
@@ -12,5 +12,8 @@ class UnknownType extends StringType_1.StringType {
|
|
|
12
12
|
compareAsType() {
|
|
13
13
|
return 'unknown';
|
|
14
14
|
}
|
|
15
|
+
ensureComparable() {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
15
18
|
}
|
|
16
19
|
exports.UnknownType = UnknownType;
|