MikroORMOptions <D, EM>
Hierarchy
- ConnectionOptions
- MikroORMOptions
Index
Properties
- allowGlobalContext
- assign
- autoJoinOneToOneOwner
- autoJoinRefsForFilters
- baseDir
- batchSize
- charset
- clientUrl
- collate
- colors
- connect
- context
- contextName
- dataloader
- dbName
- debug
- disableIdentityMap
- disableTransactions
- discovery
- driver
- driverOptions
- dynamicImportProvider
- embeddables
- ensureDatabase
- ensureIndexes
- entities
- entitiesTs
- entityGenerator
- entityManager
- entityRepository
- extensions
- filters
- findExactlyOneOrFailHandler
- findOneOrFailHandler
- flushMode
- forceEntityConstructor
- forceUndefined
- forceUtcTimezone
- highlighter
- host
- hydrator
- ignoreUndefinedInQuery
- implicitTransactions
- loadStrategy
- logger
- loggerFactory
- metadataCache
- metadataProvider
- migrations
- multipleStatements
- name
- namingStrategy
- password
- persistOnCreate
- pool
- populateAfterFlush
- populateWhere
- port
- preferReadReplicas
- propagationOnPrototype
- replicas
- resultCache
- schema
- schemaGenerator
- seeder
- serialization
- strict
- subscribers
- timezone
- tsNode
- useBatchInserts
- useBatchUpdates
- user
- validate
- validateRequired
- verbose
Properties
allowGlobalContext
assign
autoJoinOneToOneOwner
autoJoinRefsForFilters
baseDir
batchSize
optionalcharset
optionalclientUrl
optionalcollate
optionalcolors
connect
context
Type declaration
Parameters
name: string
Returns undefined | EntityManager<IDatabaseDriver<Connection>>
contextName
dataloader
optionaldbName
debug
optionaldisableIdentityMap
optionaldisableTransactions
discovery
optionaldriver
Type declaration
Parameters
Returns D
optionaldriverOptions
dynamicImportProvider
Type declaration
Parameters
id: string
Returns Promise<unknown>
embeddables
Type declaration
prefixMode: EmbeddedPrefixMode
ensureDatabase
ensureIndexes
entities
entitiesTs
entityGenerator
optionalentityManager
optionalentityRepository
extensions
filters
findExactlyOneOrFailHandler
Type declaration
Parameters
entityName: string
where: IPrimaryKeyValue | Dictionary
Returns Error
findOneOrFailHandler
Type declaration
Parameters
entityName: string
where: IPrimaryKeyValue | Dictionary
Returns Error
flushMode
forceEntityConstructor
forceUndefined
optionalforceUtcTimezone
highlighter
optionalhost
hydrator
optionalignoreUndefinedInQuery
optionalimplicitTransactions
loadStrategy
logger
Type declaration
Parameters
message: string
Returns void
optionalloggerFactory
Type declaration
Parameters
options: LoggerOptions
Returns Logger
metadataCache
Type declaration
optionaladapter?: new (...params: any[]) => SyncCacheAdapter
Parameters
rest...params: any[]
Returns SyncCacheAdapter
optionalcombined?: string | boolean
optionalenabled?: boolean
optionaloptions?: Dictionary
optionalpretty?: boolean
metadataProvider
Type declaration
Parameters
Returns MetadataProvider
migrations
optionalmultipleStatements
optionalname
optionalnamingStrategy
Type declaration
Returns NamingStrategy
optionalpassword
persistOnCreate
optionalpool
populateAfterFlush
optionalpopulateWhere
optionalport
preferReadReplicas
propagationOnPrototype
optionalreplicas
resultCache
Type declaration
optionaladapter?: new (...params: any[]) => CacheAdapter
Parameters
rest...params: any[]
Returns CacheAdapter
optionalexpiration?: number
optionalglobal?: number | boolean | [string, number]
optionaloptions?: Dictionary
optionalschema
schemaGenerator
Type declaration
optionalcreateForeignKeyConstraints?: boolean
optionaldisableForeignKeys?: boolean
optionalignoreSchema?: string[]
optionalmanagementDbName?: string
seeder
serialization
Type declaration
optionalforceObject?: boolean
optionalincludePrimaryKeys?: boolean
Enforce unpopulated references to be returned as objects, e.g.
{ author: { id: 1 } }
instead of{ author: 1 }
.