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

Method toRaw

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

* Returns raw fragment representation of this QueryBuilder.

()

Source from the content-addressed store, hash-verified

2306 * Returns raw fragment representation of this QueryBuilder.
2307 */
2308 toRaw(): RawQueryFragment {
2309 const { sql, params } = this.toQuery();
2310 return raw(sql, params);
2311 }
2312
2313 toQuery(): { sql: string; params: readonly unknown[] } {
2314 if (this.#state.unionQuery) {

Callers 11

prepareQueryFunction · 0.45
applyUnionWhereFunction · 0.45
joinAndSelectMethod · 0.45
addCteMethod · 0.45
wrapPaginateSubQueryMethod · 0.45
fromSubQueryMethod · 0.45
processMethod · 0.45
processMethod · 0.45
executeMethod · 0.45

Calls 2

toQueryMethod · 0.95
rawFunction · 0.90

Tested by

no test coverage detected