Methods
(static) get(type, configuration) → {module:storages/Storage~Storage}
Gets a Storage
instance.
Parameters:
Name | Type | Description |
---|---|---|
type |
String | The expected storage type, could be "mongodb" |
configuration |
Object | A storage configuration object which depends on the storage type |
- Source:
Throws:
-
If the specified storage type does not exist
- Type
- TypeError
Returns:
The Storage instance
Example
// Create a new Storage instance
var db = openVeoApi.storages.factory.get('mongodb', mongoDbConfiguration);