ceabiodb / biodb

An R package framework for accessing biological and chemical databases and developing or extending new connectors.
GNU Affero General Public License v3.0
11 stars 2 forks source link

Create a class for definning a filter for searchForEntries() #530

Open pkrog opened 3 years ago

pkrog commented 3 years ago

The filtering parameter in searchForEntries() is a plain list, which contain several levels. It would be better to create a BiodbFilter class with different subclasses (BiodbFilterAnd, BiodbFilterOr, BiodbFilterText, BiodbFilterNumRange, etc) that could be combined. Maybe using plain functions to simplify instantiation: mkTxtFilter(), mkNumFilter(), mkOrFilter(), etc.