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

Method UpdateBalance

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

Retrieves all balances (legacy)

(balance *model.Balance)

Source from the content-addressed store, hash-verified

98 GetBalancesByIDsLite(ctx context.Context, ids []string) (map[string]*model.Balance, error) // Retrieves multiple balances by IDs with minimal data (batch query)
99 GetAllBalances(limit, offset int) ([]model.Balance, error) // Retrieves all balances (legacy)
100 UpdateBalance(balance *model.Balance) error // Updates a balance
101 GetBalanceByIndicator(indicator, currency string) (*model.Balance, error) // Retrieves a balance by indicator and currency
102 UpdateBalances(ctx context.Context, sourceBalance, destinationBalance *model.Balance) error // Updates multiple balances
103 GetSourceDestination(sourceId, destinationId string) ([]*model.Balance, error) // Retrieves balances between source and destination

Callers 1

TestUpdateBalanceFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 1

TestUpdateBalanceFunction · 0.52