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

Method qb

packages/sql/src/SqlEntityManager.ts:73–80  ·  view source on GitHub ↗

* Shortcut for `createQueryBuilder()`

(
    entityName: EntityName<Entity>,
    alias?: RootAlias,
    type?: ConnectionType,
    loggerContext?: LoggingOptions,
  )

Source from the content-addressed store, hash-verified

71 * Shortcut for `createQueryBuilder()`
72 */
73 qb<Entity extends object, RootAlias extends string = never>(
74 entityName: EntityName<Entity>,
75 alias?: RootAlias,
76 type?: ConnectionType,
77 loggerContext?: LoggingOptions,
78 ): QueryBuilder<Entity, RootAlias> {
79 return this.createQueryBuilder(entityName, alias, type, loggerContext);
80 }
81
82 /**
83 * Returns a configured Kysely instance bound to this EntityManager.

Calls 1

createQueryBuilderMethod · 0.95

Tested by

no test coverage detected