MCPcopy
hub / github.com/pocketbase/pocketbase / RunInTransaction

Method RunInTransaction

core/app.go:363–363  ·  view source on GitHub ↗

RunInTransaction wraps fn into a transaction for the regular app database. It is safe to nest RunInTransaction calls as long as you use the callback's txApp.

(fn func(txApp App) error)

Source from the content-addressed store, hash-verified

361 //
362 // It is safe to nest RunInTransaction calls as long as you use the callback's txApp.
363 RunInTransaction(fn func(txApp App) error) error
364
365 // AuxRunInTransaction wraps fn into a transaction for the auxiliary app database.
366 //

Calls

no outgoing calls