Members
config :TConfig
Configuration object
- TConfig
Methods
(async) exportTo(source, dest, options) → {Promise.<object>}
Export data from a Dobo model into a file
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
source | string | Source model name | ||||||||||||||||||||||||||||||||||||||||
dest | string | Destination file path (absolute or relative to plugin data dir) | ||||||||||||||||||||||||||||||||||||||||
options | object | Export options Properties
|
- Export summary including file path and record count affected
- Type:
- Promise.<object>
(async) importFrom(source, dest, options) → {Promise.<(object|array)>}
Import data from a file into a Dobo model
| Name | Type | Description | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
source | string | Source file path (absolute or relative to plugin data dir) | |||||||||||||||||||||||||||||||||||
dest | string | | Destination model name or | |||||||||||||||||||||||||||||||||||
options | object | Import options Properties
|
- Imported data or summary report including file path and record count affected
- Type:
- Promise.<(object|array)>
Type Definitions
TConfig
- object
| Name | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
export | object | Export configuration Properties
| |||||||||||||||||||||
import | object | Import configuration Properties
|
- Source