MCPcopy
hub / github.com/prisma/prisma / rollback

Method rollback

packages/adapter-mariadb/src/mariadb.ts:110–121  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 }
109
110 async rollback(): Promise<void> {
111 debug(`[js::rollback]`)
112
113 try {
114 await this.client.query({ sql: 'ROLLBACK' })
115 } catch (err) {
116 this.onError(err)
117 } finally {
118 this.cleanup?.()
119 await this.client.end()
120 }
121 }
122
123 async createSavepoint(name: string): Promise<void> {
124 await this.client.query({ sql: `SAVEPOINT ${name}` }).catch(this.onError.bind(this))

Callers

nothing calls this directly

Calls 5

debugFunction · 0.85
endMethod · 0.80
queryMethod · 0.45
onErrorMethod · 0.45
cleanupMethod · 0.45

Tested by

no test coverage detected