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

Method GetAllBalances

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

Retrieves multiple balances by IDs with minimal data (batch query)

(limit, offset int)

Source from the content-addressed store, hash-verified

97 GetBalanceByIDLite(id string) (*model.Balance, error) // Retrieves a balance by ID with minimal data
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

Callers 4

GetAllBalancesMethod · 0.65
indexBalancesMethod · 0.65
dbHasDataFunction · 0.65
GetBalancesMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected