MCPcopy
hub / github.com/dnote/dnote / Commit

Method Commit

pkg/cli/database/sql.go:66–72  ·  view source on GitHub ↗

Commit commits a transaction

()

Source from the content-addressed store, hash-verified

64
65// Commit commits a transaction
66func (d *DB) Commit() error {
67 if db, ok := d.Conn.(sqlTx); ok && db != nil {
68 return db.Commit()
69 }
70
71 return errors.New("invalid transaction")
72}
73
74// Rollback rolls back a transaction
75func (d *DB) Rollback() error {

Callers

nothing calls this directly

Calls 2

NewMethod · 0.80
CommitMethod · 0.65

Tested by

no test coverage detected