Database

Represents the Database structure for SimplDB.

Constructor

new SimplDB(config)

Parameter

Default

Description

config

Objectarrow-up-right

The configuration to use in the database

config.filePath

Stringarrow-up-right

The path to the JSON file (from the root of the project) where data will be stored

config.encryptionKey

null

Stringarrow-up-right (optional)

The Encryption Key to use for data encryption and decryption

config.saveOnUpdate

true

Booleanarrow-up-right (optional)

Whether or not to write new data to the JSON file everytime it is updated

config.tabSize

2

Numberarrow-up-right (optional)

The size of the tab before each key (indentation)

Last updated