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

Method GetAllLedgersWithFilter

database/ledger.go:223–226  ·  view source on GitHub ↗

GetAllLedgersWithFilter retrieves ledgers with advanced filtering support. It delegates to GetAllLedgersWithFilterAndOptions with nil options. Parameters: - ctx: Context for the database operation. - filters: A QueryFilterSet containing the filter conditions. - limit: The maximum number of ledgers

(ctx context.Context, filters *filter.QueryFilterSet, limit, offset int)

Source from the content-addressed store, hash-verified

221// - []model.Ledger: A slice of ledgers matching the filter criteria.
222// - error: An error if the query fails or if there's an issue processing the results.
223func (d Datasource) GetAllLedgersWithFilter(ctx context.Context, filters *filter.QueryFilterSet, limit, offset int) ([]model.Ledger, error) {
224 ledgers, _, err := d.GetAllLedgersWithFilterAndOptions(ctx, filters, nil, limit, offset)
225 return ledgers, err
226}
227
228// GetAllLedgersWithFilterAndOptions retrieves ledgers with filtering, sorting, and optional count.
229// It uses the filter package to build SQL WHERE and ORDER BY conditions.

Callers

nothing calls this directly

Tested by

no test coverage detected