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

Method $raw

sandbox/driver-adapters/src/test.ts:101–113  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99 }
100
101 async $raw() {
102 const cleanUp = async () => {
103 await this.prisma.$executeRaw`DELETE FROM leak_test`
104 }
105
106 await cleanUp()
107
108 await this.prisma.$executeRaw`INSERT INTO leak_test (id) VALUES (1)`
109 const result = await this.prisma.$queryRaw`SELECT * FROM leak_test`
110 console.log('[nodejs] result', superjson.serialize(result).json)
111
112 await cleanUp()
113 }
114
115 async interactiveTransactions() {
116 const author = await this.prisma.author.create({

Callers 1

smokeTestFunction · 0.95

Calls 4

$executeRawMethod · 0.80
$queryRawMethod · 0.80
logMethod · 0.80
serializeMethod · 0.80

Tested by

no test coverage detected