MCPcopy Create free account
hub / github.com/daodst/chat / Transaction

Interface Transaction

internal/sqlutil/sql.go:31–36  ·  view source on GitHub ↗

A Transaction is something that can be committed or rolledback.

Source from the content-addressed store, hash-verified

29
30// A Transaction is something that can be committed or rolledback.
31type Transaction interface {
32 // Commit the transaction
33 Commit() error
34 // Rollback the transaction.
35 Rollback() error
36}
37
38// EndTransaction ends a transaction.
39// If the transaction succeeded then it is committed, otherwise it is rolledback.

Callers 10

CommitMethod · 0.65
CommitMethod · 0.65
PerformInviteMethod · 0.65
EndTransactionFunction · 0.65
RollbackMethod · 0.65
rollbackFunction · 0.65
RollbackMethod · 0.65
EndTransactionFunction · 0.65

Implementers 2

transactionroomserver/storage/shared/prepare.go
RoomUpdaterroomserver/storage/shared/room_updater

Calls

no outgoing calls

Tested by

no test coverage detected