MCPcopy
hub / github.com/prisma/prisma / $queryRawUnsafe

Method $queryRawUnsafe

packages/client/src/runtime/getPrismaClient.ts:711–715  ·  view source on GitHub ↗

* Unsafe counterpart of `$queryRaw` that is susceptible to SQL injections * @see https://github.com/prisma/prisma/issues/7142 * * @param query * @param values * @returns

(query: string, ...values: RawValue[])

Source from the content-addressed store, hash-verified

709 * @returns
710 */
711 $queryRawUnsafe(query: string, ...values: RawValue[]) {
712 return this._createPrismaPromise((transaction) => {
713 return this.$queryRawInternal(transaction, '$queryRawUnsafe', [query, ...values])
714 })
715 }
716
717 /**
718 * Execute a batch of requests in a transaction

Callers 12

mainFunction · 0.95
mainFunction · 0.95
main.tsFile · 0.80
main.tsFile · 0.80
$queryRawUnsafeFunction · 0.80
tests.tsFile · 0.80
client.tsFile · 0.80
query.tsFile · 0.80
defineExtension.tsFile · 0.80
itx.tsFile · 0.80
tests.tsFile · 0.80
tests.tsFile · 0.80

Calls 1

$queryRawInternalMethod · 0.95

Tested by 2

mainFunction · 0.76
mainFunction · 0.76