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

Method indexHint

packages/sql/src/query/QueryBuilder.ts:2073–2077  ·  view source on GitHub ↗

* Adds index hint to the FROM clause.

(sql: string | undefined)

Source from the content-addressed store, hash-verified

2071 * Adds index hint to the FROM clause.
2072 */
2073 indexHint(sql: string | undefined): this {
2074 this.ensureNotFinalized();
2075 this.#state.indexHint = sql;
2076 return this;
2077 }
2078
2079 /**
2080 * Adds COLLATE clause to ORDER BY expressions.

Callers 3

countFunction · 0.80

Calls 1

ensureNotFinalizedMethod · 0.95

Tested by

no test coverage detected