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

Method UpdateBalanceIdentity

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

Retrieves a balance at a specific time

(balanceID string, identityID string)

Source from the content-addressed store, hash-verified

104 TakeBalanceSnapshots(ctx context.Context, batchSize int) (int, error) // Takes balance snapshots
105 GetBalanceAtTime(ctx context.Context, balanceID string, targetTime time.Time, fromSource bool) (*model.Balance, error) // Retrieves a balance at a specific time
106 UpdateBalanceIdentity(balanceID string, identityID string) error // Updates only the identity_id of a balance
107
108 // Advanced filtering methods
109 GetAllBalancesWithFilter(ctx context.Context, filters *filter.QueryFilterSet, limit, offset int) ([]model.Balance, error) // Retrieves balances with advanced filtering

Callers 2

UpdateBalanceIdentityMethod · 0.65
UpdateBalanceIdentityMethod · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected