MCPcopy
hub / github.com/prisma/prisma / commit

Method commit

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

Source from the content-addressed store, hash-verified

95 }
96
97 async commit(): Promise<void> {
98 debug(`[js::commit]`)
99
100 try {
101 await this.client.query({ sql: 'COMMIT' })
102 } catch (err) {
103 this.onError(err)
104 } finally {
105 this.cleanup?.()
106 await this.client.end()
107 }
108 }
109
110 async rollback(): Promise<void> {
111 debug(`[js::rollback]`)

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