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

Method CreateBalance

database/repository.go:95–95  ·  view source on GitHub ↗
(balance model.Balance)

Source from the content-addressed store, hash-verified

93// balance defines methods for handling balances.
94type balance interface {
95 CreateBalance(balance model.Balance) (model.Balance, error) // Creates a new balance
96 GetBalanceByID(id string, include []string, withQueued bool) (*model.Balance, error) // Retrieves a balance by ID with additional data and queued status
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)

Implementers 2

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

Calls

no outgoing calls