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)
| 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. |
| 223 | func (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. |
nothing calls this directly
no test coverage detected