@mikro-orm/core 7.0.3-dev.3 → 7.0.3-dev.5
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/entity/defineEntity.d.ts +11 -1
- package/package.json +1 -1
- package/utils/Utils.js +1 -1
package/entity/defineEntity.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { EntityManager } from '../EntityManager.js';
|
|
2
|
-
import type { ColumnType, PropertyOptions, ReferenceOptions, EnumOptions, EmbeddedOptions, ManyToOneOptions, OneToManyOptions, OneToOneOptions, ManyToManyOptions } from '../metadata/types.js';
|
|
2
|
+
import type { ColumnType, PropertyOptions, ReferenceOptions, EnumOptions, EmbeddedOptions, ManyToOneOptions, OneToManyOptions, OneToOneOptions, ManyToManyOptions, IndexColumnOptions } from '../metadata/types.js';
|
|
3
3
|
import type { AnyString, GeneratedColumnCallback, Constructor, CheckCallback, FilterQuery, EntityName, Dictionary, EntityMetadata, PrimaryKeyProp, EntityRepositoryType, Hidden, Opt, Primary, EntityClass, EntitySchemaWithMeta, InferEntity, MaybeReturnType, Ref, IndexCallback, FormulaCallback, EntityCtor, IsNever, IWrappedEntity, DefineConfig, Config } from '../typings.js';
|
|
4
4
|
import type { Raw } from '../utils/RawQueryFragment.js';
|
|
5
5
|
import type { ScalarReference } from './Reference.js';
|
|
@@ -571,6 +571,12 @@ export interface EntityMetadataWithProperties<TName extends string, TTableName e
|
|
|
571
571
|
type?: string;
|
|
572
572
|
options?: Dictionary;
|
|
573
573
|
expression?: string | IndexCallback<InferEntityFromProperties<TProperties, TPK, TBase>>;
|
|
574
|
+
columns?: IndexColumnOptions[];
|
|
575
|
+
include?: keyof TProperties | (keyof TProperties)[];
|
|
576
|
+
fillFactor?: number;
|
|
577
|
+
invisible?: boolean;
|
|
578
|
+
disabled?: boolean;
|
|
579
|
+
clustered?: boolean;
|
|
574
580
|
}[];
|
|
575
581
|
uniques?: {
|
|
576
582
|
properties?: keyof TProperties | (keyof TProperties)[];
|
|
@@ -578,6 +584,10 @@ export interface EntityMetadataWithProperties<TName extends string, TTableName e
|
|
|
578
584
|
options?: Dictionary;
|
|
579
585
|
expression?: string | IndexCallback<InferEntityFromProperties<TProperties, TPK, TBase>>;
|
|
580
586
|
deferMode?: DeferMode | `${DeferMode}`;
|
|
587
|
+
columns?: IndexColumnOptions[];
|
|
588
|
+
include?: keyof TProperties | (keyof TProperties)[];
|
|
589
|
+
fillFactor?: number;
|
|
590
|
+
disabled?: boolean;
|
|
581
591
|
}[];
|
|
582
592
|
}
|
|
583
593
|
/** Defines an entity schema using property builders, with full type inference from the property definitions. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikro-orm/core",
|
|
3
|
-
"version": "7.0.3-dev.
|
|
3
|
+
"version": "7.0.3-dev.5",
|
|
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
|
"keywords": [
|
|
6
6
|
"data-mapper",
|
package/utils/Utils.js
CHANGED
|
@@ -129,7 +129,7 @@ export function parseJsonSafe(value) {
|
|
|
129
129
|
/** Collection of general-purpose utility methods used throughout the ORM. */
|
|
130
130
|
export class Utils {
|
|
131
131
|
static PK_SEPARATOR = '~~~';
|
|
132
|
-
static #ORM_VERSION = '7.0.3-dev.
|
|
132
|
+
static #ORM_VERSION = '7.0.3-dev.5';
|
|
133
133
|
/**
|
|
134
134
|
* Checks if the argument is instance of `Object`. Returns false for arrays.
|
|
135
135
|
*/
|