@mikro-orm/knex 6.0.0-dev.41 → 6.0.0-dev.43
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/AbstractSqlDriver.d.ts +3 -3
- package/AbstractSqlDriver.js +1 -1
- package/index.mjs +1 -0
- package/package.json +2 -2
package/AbstractSqlDriver.d.ts
CHANGED
|
@@ -14,9 +14,9 @@ export declare abstract class AbstractSqlDriver<Connection extends AbstractSqlCo
|
|
|
14
14
|
protected constructor(config: Configuration, platform: Platform, connection: Constructor<Connection>, connector: string[]);
|
|
15
15
|
getPlatform(): Platform;
|
|
16
16
|
createEntityManager<D extends IDatabaseDriver = IDatabaseDriver>(useContext?: boolean): D[typeof EntityManagerType];
|
|
17
|
-
find<T extends object, P extends string = never>(entityName: string, where: FilterQuery<T>, options?: FindOptions<T, P>): Promise<EntityData<T>[]>;
|
|
18
|
-
findOne<T extends object, P extends string = never>(entityName: string, where: FilterQuery<T>, options?: FindOneOptions<T, P>): Promise<EntityData<T> | null>;
|
|
19
|
-
findVirtual<T extends object>(entityName: string, where: FilterQuery<T>, options: FindOptions<T, any>): Promise<EntityData<T>[]>;
|
|
17
|
+
find<T extends object, P extends string = never, F extends string = '*'>(entityName: string, where: FilterQuery<T>, options?: FindOptions<T, P, F>): Promise<EntityData<T>[]>;
|
|
18
|
+
findOne<T extends object, P extends string = never, F extends string = '*'>(entityName: string, where: FilterQuery<T>, options?: FindOneOptions<T, P, F>): Promise<EntityData<T> | null>;
|
|
19
|
+
findVirtual<T extends object>(entityName: string, where: FilterQuery<T>, options: FindOptions<T, any, any>): Promise<EntityData<T>[]>;
|
|
20
20
|
countVirtual<T extends object>(entityName: string, where: FilterQuery<T>, options: CountOptions<T>): Promise<number>;
|
|
21
21
|
protected wrapVirtualExpressionInSubquery<T extends object>(meta: EntityMetadata<T>, expression: string, where: FilterQuery<T>, options: FindOptions<T, any>, type: QueryType.COUNT): Promise<number>;
|
|
22
22
|
protected wrapVirtualExpressionInSubquery<T extends object>(meta: EntityMetadata<T>, expression: string, where: FilterQuery<T>, options: FindOptions<T, any>, type: QueryType.SELECT): Promise<T[]>;
|
package/AbstractSqlDriver.js
CHANGED
|
@@ -582,7 +582,7 @@ class AbstractSqlDriver extends core_1.DatabaseDriver {
|
|
|
582
582
|
if (!fields || prop.primary) {
|
|
583
583
|
return !fields?.includes('*');
|
|
584
584
|
}
|
|
585
|
-
return fields.
|
|
585
|
+
return fields.some(f => f === prop.name || f.toString().startsWith(prop.name + '.'));
|
|
586
586
|
};
|
|
587
587
|
// alias all fields in the primary table
|
|
588
588
|
meta.props
|
package/index.mjs
CHANGED
|
@@ -50,6 +50,7 @@ export const DecimalType = mod.DecimalType;
|
|
|
50
50
|
export const DefaultLogger = mod.DefaultLogger;
|
|
51
51
|
export const DoubleType = mod.DoubleType;
|
|
52
52
|
export const DriverException = mod.DriverException;
|
|
53
|
+
export const EagerProps = mod.EagerProps;
|
|
53
54
|
export const Embeddable = mod.Embeddable;
|
|
54
55
|
export const Embedded = mod.Embedded;
|
|
55
56
|
export const EnsureRequestContext = mod.EnsureRequestContext;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/knex",
|
|
3
|
-
"version": "6.0.0-dev.
|
|
3
|
+
"version": "6.0.0-dev.43",
|
|
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",
|
|
@@ -66,6 +66,6 @@
|
|
|
66
66
|
"@mikro-orm/core": "^5.6.12"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@mikro-orm/core": "~6.0.0-dev.
|
|
69
|
+
"@mikro-orm/core": "~6.0.0-dev.43"
|
|
70
70
|
}
|
|
71
71
|
}
|