Interface for data processing components that can query a list of data items.
Description
The IQuerableReader[T any]
interface is used by data processing components that can query a list of data items.
- T any type
Methods
GetListByQuery
Gets a list of data items using a query string.
GetListByQuery(ctx context.Context, context IContext, query string, sort *data.SortParams) (items []T, err error)
- context: IContext - (optional) a context to trace execution through a call chain.
- query: string - (optional) query string
- sort: *data.SortParams - (optional) sorting parameters
- returns: (items []T, err error) - list of items