You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This initializes a Storage interface object. This accepts a hash reference to configuration details. Currently this only accepts two parameters:
databases
An array reference (\@) where each element in the array is either a ModelSEED::Database implementation or a hash reference (\%) like the following:
{
class => "ModelSEED::Database::*"
...
}
class must be a valid class that implements the ModelSEED::Database role. All other attributes are used as arguments to the constructor for that class.
use_config
A boolean flag. If this is set, use the configuration details in ModelSEED::Configuration under the "stores" key as arguments like in databases.
Concepts
Since this acts as a composite over a number of database instances, it behaves a little differently from a standard ModelSEED::Database implementation. For most "read" functions, this class simply calls those functions on each database in it's composite. However, some functions will stop searching after they find a result. For "write" functions, e.g. save_object, it will call this on all databases in the composite.