MCPcopy Create free account
hub / github.com/temporalio/temporal / BeginTx

Method BeginTx

common/persistence/sql/sqlplugin/sqlite/db.go:59–65  ·  view source on GitHub ↗

BeginTx starts a new transaction and returns a reference to the Tx object

(ctx context.Context)

Source from the content-addressed store, hash-verified

57
58// BeginTx starts a new transaction and returns a reference to the Tx object
59func (mdb *db) BeginTx(ctx context.Context) (sqlplugin.Tx, error) {
60 xtx, err := mdb.db.BeginTxx(ctx, nil)
61 if err != nil {
62 return nil, err
63 }
64 return newDB(mdb.dbKind, mdb.dbName, mdb.db, xtx, mdb.logger), nil
65}
66
67// Commit commits a previously started transaction
68func (mdb *db) Commit() error {

Callers

nothing calls this directly

Calls 1

newDBFunction · 0.70

Tested by

no test coverage detected