dobo
Version:
DBMS for Bajo Framework
26 lines (24 loc) • 2.17 kB
Markdown
# Config Object
| Key Name | Type | Default | Description |
| ------- | ---- | ----- | ----------- |
| ```connections``` | ```array``` | ```[]``` | Connection object |
| ```validationParams``` | ```object``` | | Defaults to [Joi validate's](https://joi.dev/api/?v=17.13.3#anyvalidateasyncvalue-options) options |
| ```abortEarly``` | ```boolean``` | ```false``` | |
| ```convert``` | ```boolean``` | ```false``` | |
| ```allowUnknown``` | ```boolean``` | ```true``` | |
| ```default``` | ```object``` | | default values |
| ```property``` | ```object``` | | |
| ```text``` | ```object``` | | |
| ```textType``` | ```string``` | ```text``` | Allowed values: ```text```, ```mediumtext```, or ```longtext``` |
| ```string``` | ```object``` | | |
| ```length``` | ```number``` | ```50``` | |
| ```filter``` | ```object``` | | |
| ```limit``` | ```number``` | ```25``` | Rows returned in one page |
| ```maxLimit``` | ```number``` | ```200``` | Max rows returned in one page |
| ```hardCap``` | ```number``` | ```10000``` | Max rows returned on dataset export |
| ```sort``` | ```array``` | | |
| ```idField``` | ```object``` | | |
| ```memDb``` | ```object``` | | |
| ```createDefConnAtStart``` | ```boolean``` | ```true``` | |
| ```persistence``` | ```object``` | | |
| ```syncPeriodDur``` | ```string | number``` | ```1s``` | |