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

Method RecordMatch

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

Retrieves reconciliations by upload ID

(ctx context.Context, match *model.Match)

Source from the content-addressed store, hash-verified

155 UpdateReconciliationStatus(ctx context.Context, id string, status string, matchedCount, unmatchedCount int) error // Updates the status of a reconciliation
156 GetReconciliationsByUploadID(ctx context.Context, uploadID string) ([]*model.Reconciliation, error) // Retrieves reconciliations by upload ID
157 RecordMatch(ctx context.Context, match *model.Match) error // Records a match in reconciliation
158 GetMatchesByReconciliationID(ctx context.Context, reconciliationID string) ([]*model.Match, error) // Retrieves matches by reconciliation ID
159 GetExternalTransactionsPaginated(ctx context.Context, uploadID string, batchSize int, offset int64) ([]*model.ExternalTransaction, error) // Retrieves external transactions in a paginated manner
160 RecordExternalTransaction(ctx context.Context, tx *model.ExternalTransaction, reconciliationID string) error // Records an external transaction

Callers

nothing calls this directly

Implementers 2

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

Calls

no outgoing calls

Tested by

no test coverage detected