MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / $queryRawUnsafe

Method $queryRawUnsafe

packages/orm/src/client/client-impl.ts:495–501  ·  view source on GitHub ↗
(query: string, ...values: any[])

Source from the content-addressed store, hash-verified

493 }
494
495 $queryRawUnsafe<T = unknown>(query: string, ...values: any[]) {
496 return createZenStackPromise(async () => {
497 const compiledQuery = this.createRawCompiledQuery(query, values);
498 const result = await this.kysely.executeQuery(compiledQuery);
499 return result.rows as T;
500 });
501 }
502
503 private createRawCompiledQuery(query: string, values: any[]) {
504 const q = CompiledQuery.raw(query, values);

Callers

nothing calls this directly

Calls 3

createZenStackPromiseFunction · 0.90
executeQueryMethod · 0.45

Tested by

no test coverage detected