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

Function executeDump

packages/sql/src/AbstractSqlConnection.ts:356–366  ·  view source on GitHub ↗

@inheritDoc

(dump: string)

Source from the content-addressed store, hash-verified

354
355 /** @inheritDoc */
356 override async executeDump(dump: string): Promise<void> {
357 await this.ensureConnection();
358
359 try {
360 const raw = CompiledQuery.raw(dump);
361 await this.getClient().executeQuery(raw);
362 } catch (e) {
363 /* v8 ignore next */
364 throw this.platform.getExceptionConverter().convertException(e as Error);
365 }
366 }
367
368 protected getSql(query: string, formatted: string, context?: LogContext): string {
369 const logger = this.config.getLogger();

Callers

nothing calls this directly

Calls 3

getClientMethod · 0.80
convertExceptionMethod · 0.65
executeQueryMethod · 0.45

Tested by

no test coverage detected