setPersistenceDialect
setPersistenceDialect(
dialect):void
Defined in: packages/ddd-core/persistence/persistence-dialect.ts:30
Registers the dialect that @MapPersistenceErrors and @PersistedWrite use
when their options name none. Call it once at the composition root, after
the ORM is initialized; undefined removes it.
Parameters
Section titled “Parameters”dialect
Section titled “dialect”IPersistenceDialect | undefined
Returns
Section titled “Returns”void
Example
Section titled “Example”setPersistenceDialect(new MikroOrmDialect(orm));