Extends
- EventEmitter2
Members
db :DataAdapter
Gets the current database adapter
Type:
- DataAdapter
Methods
finalize(cb)
Parameters:
Name | Type | Description |
---|---|---|
cb |
function |
getConfiguration() → {DataConfiguration}
Gets an instance of DataConfiguration class which is associated with this data context
Returns:
- Type
- DataConfiguration
model(name) → {DataModel}
Gets a data model based on the given data context
Parameters:
Name | Type | Description |
---|---|---|
name |
string | A string that represents the model to be loaded. |
Returns:
- Type
- DataModel