Database is the base class for OrbitDB data stores and handles all lower level add operations and database sync-ing using IPFS.
- Source:
Methods
(async) Database(params) → {module:Databases~Database}
Creates an instance of Database.
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | One or more parameters for configuring Database. Properties
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options.encryptFn |
function | An encryption function. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options.decryptFn |
function | A decryption function. |
- Source:
Returns:
An instance of Database.