canFind<TModel extends CModel> method
Whether the results of this provider are worth evaluating.
As this provider is a glorified key/value store, its potential for filtering is limited to
basic lookups such as a single field (primary key).
However, if the provider is extended to support complex Where
statements in get,
this method should also be extended.
Implementation
bool canFind<TModel extends CModel>([Query? query]) {
final byPrimaryKey = Where.firstByField(InsertTable.PRIMARY_KEY_FIELD, query?.where);
return manages(TModel) && byPrimaryKey?.value != null;
}