MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / flush

Method flush

packages/core/src/EntityManager.ts:2425–2427  ·  view source on GitHub ↗

* Flushes all changes to objects that have been queued up to now to the database. * This effectively synchronizes the in-memory state of managed objects with the database.

()

Source from the content-addressed store, hash-verified

2423 * This effectively synchronizes the in-memory state of managed objects with the database.
2424 */
2425 async flush(): Promise<void> {
2426 await this.getUnitOfWork().commit();
2427 }
2428
2429 /**
2430 * @internal

Callers 7

callFunction · 0.45
seedMethod · 0.45
createOneFunction · 0.45
createFunction · 0.45
commitMethod · 0.45
tryFlushMethod · 0.45

Calls 2

getUnitOfWorkMethod · 0.95
commitMethod · 0.65

Tested by

no test coverage detected