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

Method createQueryBuilder

packages/oracledb/src/OracleDriver.ts:33–62  ·  view source on GitHub ↗
(
    entityName: EntityName<T>,
    ctx?: Transaction,
    preferredConnectionType?: ConnectionType,
    convertCustomTypes?: boolean,
    loggerContext?: LoggingOptions,
    alias?: string,
    em?: SqlEntityManager,
  )

Source from the content-addressed store, hash-verified

31 }
32
33 override createQueryBuilder<T extends AnyEntity<T>>(
34 entityName: EntityName<T>,
35 ctx?: Transaction,
36 preferredConnectionType?: ConnectionType,
37 convertCustomTypes?: boolean,
38 loggerContext?: LoggingOptions,
39 alias?: string,
40 em?: SqlEntityManager,
41 ): OracleQueryBuilder<T, any, any, any> {
42 // do not compute the connectionType if EM is provided as it will be computed from it in the QB later on
43 const connectionType = em
44 ? preferredConnectionType
45 : this.resolveConnectionType({ ctx, connectionType: preferredConnectionType });
46 const qb = new OracleQueryBuilder<T, any, any, any>(
47 entityName,
48 this.metadata,
49 this,
50 ctx,
51 alias,
52 connectionType,
53 em,
54 loggerContext,
55 );
56
57 if (!convertCustomTypes) {
58 qb.unsetFlag(QueryFlag.CONVERT_CUSTOM_TYPES);
59 }
60
61 return qb;
62 }
63
64 override async nativeInsertMany<T extends object>(
65 entityName: EntityName<T>,

Callers 1

nativeInsertManyMethod · 0.95

Calls 1

unsetFlagMethod · 0.65

Tested by

no test coverage detected