MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / GetTransactionByRef

Method GetTransactionByRef

database/repository.go:51–51  ·  view source on GitHub ↗

Checks if a parent transaction is void

(cxt context.Context, reference string)

Source from the content-addressed store, hash-verified

49 GetTransaction(cxt context.Context, id string) (*model.Transaction, error) // Retrieves a transaction by ID
50 IsParentTransactionVoid(cxt context.Context, parentID string) (bool, error) // Checks if a parent transaction is void
51 GetTransactionByRef(cxt context.Context, reference string) (model.Transaction, error) // Retrieves a transaction by reference
52 TransactionExistsByRef(ctx context.Context, reference string) (bool, error) // Checks if a transaction exists by reference
53 GetExistingTransactionReferences(ctx context.Context, references []string) (map[string]struct{}, error) // Gets existing transaction references in bulk
54 UpdateTransactionStatus(cxt context.Context, id string, status string) error // Updates the status of a transaction

Implementers 2

Datasourcedatabase/db.go
MockDataSourcedatabase/mocks/repo_mocks.go

Calls

no outgoing calls