Files
common/docs/db
2019-02-16 09:22:56 +00:00
..
2019-02-16 09:22:56 +00:00
2019-02-16 09:22:56 +00:00
2019-02-16 09:22:56 +00:00
2019-02-16 09:22:56 +00:00
2018-10-19 15:38:45 +00:00
2019-02-14 09:53:14 +00:00

@polkadot/db

This is an implementation of a basic sync in-memory and on-disk database with overlays. Memory is currently used by polkadot-js/client

Usage

Installation -

yarn add @polkadot/db

Classes can be imported as follows:

// Default exports
import DiskDb from '@polkadot/db/Disk';
import MemoryDb from '@polkadot/db/Memory';
import TransactionDb from '@polkadot/db/engines/TransactionDb';

Documentation and Available Utilities

No classes or methods are exposed on the Polkadot-JS Common Documentation Portal.

However, the key classes that are available include:

  • db
    • Classes
      • Engines
        • DiskDb
        • MemoryDb
        • TransactionDb