Methods
(async) factory(pkgName) → {WaibuDb}
Plugin factory.
Never call this function directly!!! It's only-meant to be called by the Bajo framework during plugin initialization.
Parameters:
| Name | Type | Description |
|---|---|---|
pkgName | string | NPM package name |
Returns:
WaibuDb class
- Type:
- WaibuDb
Type Definitions
TConfig
Configuration object
Type:
Properties- object
| Name | Type | Attributes | Default | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
waibu | object | <optional> | {} | Waibu configuration Properties
| ||||||||||||||||||||
waibuAdmin | object | <optional> | {} | Waibu Admin configuration Properties
| ||||||||||||||||||||
waibuMpa | object | <optional> | {} | Waibu MPA configuration Properties
| ||||||||||||||||||||
dbModel | object | <optional> | {} | Database model configuration Properties
| ||||||||||||||||||||
control | object | <optional> | {} | Control configuration Properties
| ||||||||||||||||||||
enableRestApiForModel | boolean | <optional> | false | Whether to enable REST API for the model |
- Source