Initialize
How to get started with Dubnium.
Last updated
How to get started with Dubnium.
Last updated
You can initialize as many databases as you want
dirPath
The path to the directory to store Records.
String
ext
Custom file extension (default: json
)
String
options
Options
Object
options.name
Database name
String
options.force
Enable force overwriting of a preexisting Record.
Boolean
options.preserveConfig
Set to false
to not overwrite the config file
Boolean
options.versioning
Read more in .
Object
options.requireRoot
Functions to require root access to run
Array
options.template
Require all new JSON Records to follow a template, or Dubnium will throw an error