@mikro-orm/core
Index
References
Namespaces
Enumerations
Classes
- AbstractNamingStrategy
- AbstractSchemaGenerator
- ArrayType
- BaseEntity
- BigIntType
- BlobType
- BooleanType
- ChangeSet
- ChangeSetComputer
- ChangeSetPersister
- CharacterType
- CheckConstraintViolationException
- Collection
- Configuration
- Connection
- ConnectionException
- ConstraintViolationException
- Cursor
- CursorError
- DatabaseDriver
- DatabaseObjectExistsException
- DatabaseObjectNotFoundException
- DataloaderUtils
- DateTimeType
- DateType
- DeadlockException
- DecimalType
- DefaultLogger
- DoubleType
- DriverException
- EntityAssigner
- EntityCaseNamingStrategy
- EntityComparator
- EntityFactory
- EntityLoader
- EntityManager
- EntityMetadata
- EntityRepository
- EntitySchema
- EntitySerializer
- EntityTransformer
- EnumArrayType
- EnumType
- EventManager
- ExceptionConverter
- FloatType
- ForeignKeyConstraintViolationException
- GeneratedCacheAdapter
- Hydrator
- IdentityMap
- IntegerType
- IntervalType
- InvalidFieldNameException
- JsonType
- LockWaitTimeoutException
- MediumIntType
- MemoryCacheAdapter
- MetadataDiscovery
- MetadataError
- MetadataProvider
- MetadataStorage
- MikroORM
- MongoNamingStrategy
- NonUniqueFieldNameException
- NotFoundError
- NotNullConstraintViolationException
- NullCacheAdapter
- NullHighlighter
- ObjectHydrator
- OptimisticLockError
- PlainObject
- Platform
- RawQueryFragment
- ReadOnlyException
- Reference
- RequestContext
- ScalarReference
- SerializationContext
- ServerException
- SimpleLogger
- SmallIntType
- StringType
- SyntaxErrorException
- TableExistsException
- TableNotFoundException
- TextType
- TimeType
- TinyIntType
- TransactionContext
- TransactionEventBroadcaster
- TransactionManager
- TransactionStateError
- Type
- Uint8ArrayType
- UnderscoreNamingStrategy
- UniqueConstraintViolationException
- UnitOfWork
- UnknownType
- Utils
- UuidType
- ValidationError
- WrappedEntity
Interfaces
- AssignOptions
- CacheAdapter
- CheckConstraint
- ClearDatabaseOptions
- ConnectionConfig
- ConnectionOptions
- CountOptions
- CreateContextOptions
- CreateOptions
- CreateSchemaOptions
- DefineEntityHooks
- DeleteOptions
- DriverMethodOptions
- DropSchemaOptions
- Edge
- EmbeddableOptions
- EmbeddedOptions
- EmptyOptions
- EnsureDatabaseOptions
- EntityMetadataWithProperties
- EntityProperty
- EntitySchemaWithMeta
- EnumOptions
- EventArgs
- EventSubscriber
- FactoryOptions
- FindAllOptions
- FindByCursorOptions
- FindOneOptions
- FindOneOrFailOptions
- FindOptions
- FlatQueryOrderMap
- FlushEventArgs
- ForkOptions
- GenerateOptions
- GetReferenceOptions
- Highlighter
- IConfiguration
- IDatabaseDriver
- IEntityGenerator
- IMigrationGenerator
- IMigrator
- IndexOptions
- InitCollectionOptions
- ISchemaGenerator
- ISeedManager
- IWrappedEntity
- LoadCountOptions
- LoadedCollection
- LoadedReference
- LoadHint
- LoadReferenceOptions
- LoadReferenceOrFailOptions
- LockOptions
- LogContext
- Logger
- LoggerOptions
- ManyToManyOptions
- ManyToOneOptions
- MatchingOptions
- MergeOptions
- MetadataDiscoveryOptions
- MigrationDiff
- MigrationObject
- NamingStrategy
- NativeDeleteOptions
- NativeInsertUpdateManyOptions
- NativeInsertUpdateOptions
- Node
- OneToManyOptions
- OneToOneOptions
- Options
- PoolConfig
- PrimaryKeyOptions
- PropertyOptions
- QueryResult
- ReferenceOptions
- RefreshDatabaseOptions
- RegisterOptions
- SeederOptions
- SerializedPrimaryKeyOptions
- SerializeOptions
- SimpleColumnMeta
- StreamOptions
- SyncCacheAdapter
- TransactionEventArgs
- TransactionOptions
- TransformContext
- TypeConfig
- UniqueOptions
- UpdateOptions
- UpdateSchemaOptions
- UpsertManyOptions
- UpsertOptions
Type Aliases
- AnyEntity
- AnyString
- AutoPath
- Cast
- CheckCallback
- ConnectionType
- Constructor
- DeepPartial
- DefineConfig
- Dictionary
- EmbeddedPrefixMode
- EntityClass
- EntityCtor
- EntityData
- EntityDataValue
- EntityDictionary
- EntityDTO
- EntityField
- EntityKey
- EntityLoaderOptions
- EntityName
- EntityOptions
- EntityProps
- EntityRef
- EntitySchemaMetadata
- EntitySchemaProperty
- EntityType
- EntityValue
- ExpandHint
- ExpandProperty
- ExpandQuery
- ExpandScalar
- FilterDef
- FilterItemValue
- FilterKey
- FilterObject
- FilterOptions
- FilterQuery
- FilterValue
- FormulaCallback
- FormulaTable
- FromEntityType
- GeneratedColumnCallback
- GetRepository
- Hidden
- ImportsResolver
- IndexCallback
- InferEntity
- InferEntityFromProperties
- InferPrimaryKey
- IPrimaryKey
- IsSubset
- IsUnknown
- IType
- Loaded
- LoggerNamespace
- LoggingOptions
- MaybePromise
- MergeLoaded
- MergeSelected
- MetadataProcessor
- MigrateOptions
- MigrationResult
- MigrationRow
- MigrationsOptions
- MigratorEvent
- New
- NoInfer
- ObjectQuery
- Opt
- OrderDefinition
- Populate
- PopulateOptions
- Primary
- QBFilterQuery
- QBQueryOrderMap
- QueryOrderKeys
- QueryOrderKeysFlat
- QueryOrderMap
- RawQueryFragmentSymbol
- Ref
- Rel
- RequiredEntityData
- RequiredNullable
- RequiredOptions
- Scalar
- ScalarRef
- Selected
- Transaction
- TransactionEventType
- UmzugMigration
- UnboxArray
- UniversalPropertyKeys
Variables
Functions
References
Raw
Type Aliases
AnyEntity
Type parameters
- T = any
AnyString
AutoPath
Type parameters
- O
- P: string | boolean
- E: string = never
- D: Prev[number] = 9
Cast
Type parameters
- T
- R
CheckCallback
Type parameters
- T
Type declaration
Parameters
columns: Record<PropertyName<T>, string>
Returns string
ConnectionType
Constructor
Type parameters
- T = unknown
Type declaration
Parameters
rest...args: any[]
Returns T
DeepPartial
Type parameters
- T
DefineConfig
Type parameters
- T: TypeConfig
Dictionary
Type parameters
- T = any
Type declaration
EmbeddedPrefixMode
EntityClass
Type parameters
- T = any
EntityCtor
Type parameters
- T = any
Type declaration
Parameters
rest...args: any[]
Returns T
EntityData
Type parameters
- T
- C: boolean = false
EntityDataValue
Type parameters
- T
EntityDictionary
Type parameters
- T
EntityDTO
Type parameters
- T
- C: TypeConfig = never
EntityField
Type parameters
- T
- P: string = PopulatePath.ALL
EntityKey
Type parameters
- T = unknown
- B: boolean = false
EntityLoaderOptions
Type parameters
- Entity
- Fields: string = PopulatePath.ALL
- Excludes: string = never
Type declaration
optionalconnectionType?: ConnectionType
optionalconvertCustomTypes?: boolean
optionalexclude?: readonly EntityField<Entity, Excludes>[]
optionalfields?: readonly EntityField<Entity, Fields>[]
optionalfilters?: FilterOptions
optionalignoreLazyScalarProperties?: boolean
optionallockMode?: Exclude<LockMode, LockMode.OPTIMISTIC>
optionallogging?: LoggingOptions
optionallookup?: boolean
optionalorderBy?: QueryOrderMap<Entity> | QueryOrderMap<Entity>[]
optionalpopulateWhere?: PopulateHint | `${PopulateHint}`
optionalrefresh?: boolean
optionalschema?: string
optionalstrategy?: LoadStrategy | `${LoadStrategy}`
optionalvalidate?: boolean
optionalwhere?: FilterQuery<Entity>
EntityName
Type parameters
- T = any
EntityOptions
Type parameters
- T
- E = T extends EntityClass<infer P> ? P : T
Type declaration
optionalabstract?: boolean
Marks entity as abstract, such entities are inlined during discovery.
optionalcollection?: string
Override default collection/table name. Alias for
tableName.optionalcomment?: string
Specify comment to table. (SQL only)
optionalconstructorParams?: (T extends EntityClass<infer P> ? keyof P : string)[]
Specify constructor parameters to be used in
em.createor whenforceConstructoris enabled. Those should be names of declared entity properties in the same order as your constructor uses them. The ORM tries to infer those automatically, use this option in case the inference fails.optionaldiscriminatorColumn?: (T extends EntityClass<infer P> ? keyof P : string) | AnyString
optionaldiscriminatorMap?: Dictionary<string>
optionaldiscriminatorValue?: number | string
optionalexpression?: string | (em, where, options, stream) => object
SQL query that maps to a virtual entity.
optionalforceConstructor?: boolean
Enforce use of constructor when creating managed entity instances.
optionalhasTriggers?: boolean
Used to make ORM aware of externally defined triggers. This is needed for MS SQL Server multi inserts, ignored in other dialects.
optionalreadonly?: boolean
Disables change tracking - such entities are ignored during flush.
optionalrepository?: () => Constructor
Returns Constructor
optionalschema?: string
Sets the schema name.
optionaltableName?: string
Override default collection/table name. Alias for
collection.optionalvirtual?: boolean
Marks entity as virtual. This is set automatically when you use
expressionoption.
EntityProps
Type parameters
- T
EntityRef
EntitySchemaMetadata
Type parameters
- Entity
- Base = never
- Class: EntityCtor = EntityCtor<Entity>
EntitySchemaProperty
Type parameters
- Target
- Owner
EntityType
Type parameters
- T
EntityValue
Type parameters
- T
ExpandHint
Type parameters
- T
- L: string
ExpandProperty
Type parameters
- T
ExpandQuery
Type parameters
- T
ExpandScalar
Type parameters
- T
FilterDef
Type parameters
- T: EntityName | readonly EntityName[] = any
FilterItemValue
Type parameters
- T
FilterKey
Type parameters
- T
FilterObject
Type parameters
- T
FilterOptions
FilterQuery
Type parameters
- T
FilterValue
Type parameters
- T
FormulaCallback
Type parameters
- T
Type declaration
Parameters
table: FormulaTable
columns: Record<PropertyName<T>, string>
Returns string
FormulaTable
Type declaration
alias: string
name: string
qualifiedName: string
optionalschema?: string
toString: () => string
Returns string
FromEntityType
Type parameters
- T
GeneratedColumnCallback
Type parameters
- T
Type declaration
Parameters
columns: Record<keyof T, string>
Returns string
GetRepository
Type parameters
- Entity: {}
- Fallback
Hidden
Type parameters
- T = unknown
ImportsResolver
Type declaration
Parameters
alias: string
basePath: string
extension: .js |
originFileName: string
Returns { name: string; path: string } | undefined
IndexCallback
Type parameters
- T
Type declaration
Parameters
table: TableName
columns: Record<PropertyName<T>, string>
indexName: string
Returns string | Raw
InferEntity
Type parameters
- Schema
InferEntityFromProperties
Type parameters
- Properties: Record<string, any>
- PK: keyof Properties[] | undefined = undefined
- Base = never
InferPrimaryKey
Type parameters
- Properties: Record<string, any>
IPrimaryKey
Type parameters
- T: IPrimaryKeyValue = IPrimaryKeyValue
IsSubset
Type parameters
- T
- U
IsUnknown
Type parameters
- T
IType
Type parameters
- Runtime
- Raw
- Serialized = Raw
Loaded
Represents entity with its loaded relations (populate hint) and selected properties (fields hint).
Type parameters
- T
- L: string = never
- F: string = *
- E: string = never
LoggerNamespace
LoggingOptions
Logger options to modify format output and overrides, including a label and additional properties that can be accessed by custom loggers.
Differs from LoggerOptions in terms of how they are used; this type is primarily a public type meant to be used within methods like em.find().
MaybePromise
Type parameters
- T
MergeLoaded
Type parameters
- T
- U
- P: string
- F: string
- E: string
- R: boolean = false
MergeSelected
Type parameters
- T
- U
- F: string
MetadataProcessor
Type declaration
Parameters
metadata: EntityMetadata[]
platform: Platform
Returns MaybePromise<void>
MigrateOptions
Type declaration
optionalfrom?: string | number
optionalmigrations?: string[]
optionalto?: string | number
optionaltransaction?: Transaction
MigrationResult
Type declaration
code: string
diff: MigrationDiff
fileName: string
MigrationRow
Type declaration
executed_at: Date
id: number
name: string
MigrationsOptions
Configuration options for database migrations.
Type declaration
optionalallOrNothing?: boolean
Run all migrations in the current batch in a master transaction.
optionaldisableForeignKeys?: boolean
Try to disable foreign key checks during migrations.
optionaldropTables?: boolean
Allow dropping tables during schema diff.
optionalemit?: js | ts | cjs
File extension for generated migration files.
optionalfileName?: (timestamp, name) => string
Custom function to generate migration file names.
Parameters
timestamp: string
optionalname: string
Returns string
optionalgenerator?: Constructor<IMigrationGenerator>
Custom migration generator class.
optionalglob?: string
Glob pattern to match migration files.
optionalmigrationsList?: (MigrationObject | Constructor<Migration>)[]
List of migration classes or objects to use instead of file-based discovery.
optionalpath?: string
Path to the folder with migration files (for compiled JavaScript files).
optionalpathTs?: string
Path to the folder with migration files (for TypeScript source files). Used when running in TypeScript mode.
optionalsafe?: boolean
Safe mode - only allow adding new tables and columns, never dropping existing ones.
optionalsilent?: boolean
Disable logging for migration operations.
optionalsnapshot?: boolean
Create a snapshot of the current schema after migration generation.
optionalsnapshotName?: string
Custom name for the snapshot file.
optionaltableName?: string
Name of the migrations table.
optionaltransactional?: boolean
Run each migration inside a transaction.
MigratorEvent
New
Type parameters
- T
- P: string = string
NoInfer
Type parameters
- T
ObjectQuery
Type parameters
- T
Opt
Type parameters
- T = unknown
OrderDefinition
Type parameters
- T
Populate
Type parameters
- T
- P: string = never
PopulateOptions
Type parameters
- T
Type declaration
optionalall?: boolean
optionalchildren?: PopulateOptions<T[keyof T]>[]
optionaldataOnly?: boolean
When true, ignores
mapToPkon the property and returns full entity data instead of just PKs.field: EntityKey<T>
optionalfilter?: boolean
optionaljoinType?: inner join | left join
optionalstrategy?: LoadStrategy
Primary
Type parameters
- T
QBFilterQuery
Type parameters
- T = any
QBQueryOrderMap
Type parameters
- T
QueryOrderKeys
Type parameters
- T
QueryOrderKeysFlat
QueryOrderMap
Type parameters
- T
RawQueryFragmentSymbol
Ref
Ref type represents a Reference instance, and adds the primary keys to its prototype automatically, so you can do
ref.id instead of ref.unwrap().id. It resolves to either ScalarRef or EntityRef, based on the type argument.
Type parameters
- T
Rel
Identity type that can be used to get around issues with cycles in bidirectional relations. It will disable reflect-metadata inference.
Type parameters
- T
RequiredEntityData
Type parameters
- T
- I = never
- C: boolean = false
RequiredNullable
Type parameters
- T = never
RequiredOptions
Type parameters
- D: IDatabaseDriver = IDatabaseDriver
- EM: EntityManager<D> = EntityManager<D>
- Entities: (string | EntityClass<AnyEntity> | EntitySchema)[] = (string | EntityClass<AnyEntity> | EntitySchema)[]
Scalar
ScalarRef
Selected
Type parameters
- T
- L: string = never
- F: string = *
Transaction
Type parameters
- T = any
TransactionEventType
UmzugMigration
Type declaration
name: string
optionalpath?: string
UnboxArray
Type parameters
- T
UniversalPropertyKeys
Variables
constARRAY_OPERATORS
constConfig
constEagerProps
constEntityManagerType
constEntityRepositoryType
constEventTypeMap
constHiddenProps
constJSON_KEY_OPERATORS
constJsonProperty
constOptionalProps
constp
Type declaration
array: <T>(toJsValue, toDbValue) => UniversalPropertyOptionsBuilder<T[], EmptyOptions, IncludeKeysForProperty>
Parameters
toJsValue: (i) => T = ...
toDbValue: (i) => string = ...
Returns UniversalPropertyOptionsBuilder<T[], EmptyOptions, IncludeKeysForProperty>
bigint: <Mode>(mode) => UniversalPropertyOptionsBuilder<JSTypeByMode<Mode> & {}, EmptyOptions, IncludeKeysForProperty>
Parameters
optionalmode: Mode
Returns UniversalPropertyOptionsBuilder<JSTypeByMode<Mode> & {}, EmptyOptions, IncludeKeysForProperty>
blob: () => UniversalPropertyOptionsBuilder<NonNullable<null | Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>>, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<NonNullable<null | Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>>, EmptyOptions, IncludeKeysForProperty>
boolean: () => UniversalPropertyOptionsBuilder<NonNullable<undefined | null | boolean>, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<NonNullable<undefined | null | boolean>, EmptyOptions, IncludeKeysForProperty>
character: () => UniversalPropertyOptionsBuilder<string, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<string, EmptyOptions, IncludeKeysForProperty>
date: () => UniversalPropertyOptionsBuilder<string, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<string, EmptyOptions, IncludeKeysForProperty>
datetime: (length) => UniversalPropertyOptionsBuilder<Date, EmptyOptions, IncludeKeysForProperty>
Parameters
optionallength: number
Returns UniversalPropertyOptionsBuilder<Date, EmptyOptions, IncludeKeysForProperty>
decimal: <Mode>(mode) => UniversalPropertyOptionsBuilder<NonNullable<JSTypeByMode<Mode>>, EmptyOptions, IncludeKeysForProperty>
Parameters
optionalmode: Mode
Returns UniversalPropertyOptionsBuilder<NonNullable<JSTypeByMode<Mode>>, EmptyOptions, IncludeKeysForProperty>
double: () => UniversalPropertyOptionsBuilder<NonNullable<string | number>, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<NonNullable<string | number>, EmptyOptions, IncludeKeysForProperty>
embedded: <Target>(target) => UniversalPropertyOptionsBuilder<InferEntity<Target extends T[] ? T : Target>, EmptyOptions, IncludeKeysForEmbeddedOptions>
Parameters
target: Target
Returns UniversalPropertyOptionsBuilder<InferEntity<Target extends T[] ? T : Target>, EmptyOptions, IncludeKeysForEmbeddedOptions>
enum: <T>(items) => UniversalPropertyOptionsBuilder<T extends () => Dictionary ? ValueOf<ReturnType<T<T>>> : T extends Value[] ? Value : T, EmptyOptions, IncludeKeysForEnumOptions>
Parameters
optionalitems: T
Returns UniversalPropertyOptionsBuilder<T extends () => Dictionary ? ValueOf<ReturnType<T<T>>> : T extends Value[] ? Value : T, EmptyOptions, IncludeKeysForEnumOptions>
enumArray: () => UniversalPropertyOptionsBuilder<(string | number)[], EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<(string | number)[], EmptyOptions, IncludeKeysForProperty>
float: () => UniversalPropertyOptionsBuilder<number, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<number, EmptyOptions, IncludeKeysForProperty>
formula: <T>(formula) => UniversalPropertyOptionsBuilder<T, EmptyOptions, IncludeKeysForProperty>
Parameters
formula: string | FormulaCallback<any>
Returns UniversalPropertyOptionsBuilder<T, EmptyOptions, IncludeKeysForProperty>
integer: () => UniversalPropertyOptionsBuilder<number, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<number, EmptyOptions, IncludeKeysForProperty>
interval: () => UniversalPropertyOptionsBuilder<string, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<string, EmptyOptions, IncludeKeysForProperty>
json: <T>() => UniversalPropertyOptionsBuilder<T, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<T, EmptyOptions, IncludeKeysForProperty>
manyToMany: <Target>(target) => UniversalPropertyOptionsBuilder<InferEntity<Target>, EmptyOptions & { kind: m:n }, IncludeKeysForManyToManyOptions>
Parameters
target: Target
Returns UniversalPropertyOptionsBuilder<InferEntity<Target>, EmptyOptions & { kind: m:n }, IncludeKeysForManyToManyOptions>
manyToOne: <Target>(target) => UniversalPropertyOptionsBuilder<InferEntity<Target>, EmptyOptions & { kind: m:1 }, IncludeKeysForManyToOneOptions>
Parameters
target: Target
Returns UniversalPropertyOptionsBuilder<InferEntity<Target>, EmptyOptions & { kind: m:1 }, IncludeKeysForManyToOneOptions>
mediumint: () => UniversalPropertyOptionsBuilder<number, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<number, EmptyOptions, IncludeKeysForProperty>
oneToMany: <Target>(target) => OneToManyOptionsBuilderOnlyMappedBy<InferEntity<Target>>
Parameters
target: Target
Returns OneToManyOptionsBuilderOnlyMappedBy<InferEntity<Target>>
oneToOne: <Target>(target) => UniversalPropertyOptionsBuilder<InferEntity<Target>, EmptyOptions & { kind: 1:1 }, IncludeKeysForOneToOneOptions>
Parameters
target: Target
Returns UniversalPropertyOptionsBuilder<InferEntity<Target>, EmptyOptions & { kind: 1:1 }, IncludeKeysForOneToOneOptions>
smallint: () => UniversalPropertyOptionsBuilder<number, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<number, EmptyOptions, IncludeKeysForProperty>
string: () => UniversalPropertyOptionsBuilder<string, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<string, EmptyOptions, IncludeKeysForProperty>
text: () => UniversalPropertyOptionsBuilder<string, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<string, EmptyOptions, IncludeKeysForProperty>
time: (length) => UniversalPropertyOptionsBuilder<any, EmptyOptions, IncludeKeysForProperty>
Parameters
optionallength: number
Returns UniversalPropertyOptionsBuilder<any, EmptyOptions, IncludeKeysForProperty>
tinyint: () => UniversalPropertyOptionsBuilder<number, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<number, EmptyOptions, IncludeKeysForProperty>
type: <T>(type) => UniversalPropertyOptionsBuilder<InferPropertyValueType<T>, EmptyOptions, IncludeKeysForProperty>
Parameters
type: T
Returns UniversalPropertyOptionsBuilder<InferPropertyValueType<T>, EmptyOptions, IncludeKeysForProperty>
uint8array: () => UniversalPropertyOptionsBuilder<Uint8Array<ArrayBufferLike>, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<Uint8Array<ArrayBufferLike>, EmptyOptions, IncludeKeysForProperty>
unknown: () => UniversalPropertyOptionsBuilder<{}, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<{}, EmptyOptions, IncludeKeysForProperty>
uuid: () => UniversalPropertyOptionsBuilder<string, EmptyOptions, IncludeKeysForProperty>
Returns UniversalPropertyOptionsBuilder<string, EmptyOptions, IncludeKeysForProperty>
constPrimaryKeyProp
constSCALAR_TYPES
constt
Type declaration
readonlyarray: typeof ArrayType
readonlybigint: typeof BigIntType
readonlyblob: typeof BlobType
readonlyboolean: typeof BooleanType
readonlycharacter: typeof CharacterType
readonlydate: typeof DateType
readonlydatetime: typeof DateTimeType
readonlydecimal: typeof DecimalType
readonlydouble: typeof DoubleType
readonlyenum: typeof EnumType
readonlyenumArray: typeof EnumArrayType
readonlyfloat: typeof FloatType
readonlyinteger: typeof IntegerType
readonlyinterval: typeof IntervalType
readonlyjson: typeof JsonType
readonlymediumint: typeof MediumIntType
readonlysmallint: typeof SmallIntType
readonlystring: typeof StringType
readonlytext: typeof TextType
readonlytime: typeof TimeType
readonlytinyint: typeof TinyIntType
readonlyuint8array: typeof Uint8ArrayType
readonlyunknown: typeof UnknownType
readonlyuuid: typeof UuidType
consttypes
Type declaration
readonlyarray: typeof ArrayType
readonlybigint: typeof BigIntType
readonlyblob: typeof BlobType
readonlyboolean: typeof BooleanType
readonlycharacter: typeof CharacterType
readonlydate: typeof DateType
readonlydatetime: typeof DateTimeType
readonlydecimal: typeof DecimalType
readonlydouble: typeof DoubleType
readonlyenum: typeof EnumType
readonlyenumArray: typeof EnumArrayType
readonlyfloat: typeof FloatType
readonlyinteger: typeof IntegerType
readonlyinterval: typeof IntervalType
readonlyjson: typeof JsonType
readonlymediumint: typeof MediumIntType
readonlysmallint: typeof SmallIntType
readonlystring: typeof StringType
readonlytext: typeof TextType
readonlytime: typeof TimeType
readonlytinyint: typeof TinyIntType
readonlyuint8array: typeof Uint8ArrayType
readonlyunknown: typeof UnknownType
readonlyuuid: typeof UuidType
With
absolutethe prefix is set at the root of the entity (regardless of the nesting level)