Database Services¶
This module is a set of API’s that handle the interactions with the database. The layer is isolated from the HTTP request and response. Hyperledger Explorer at this time persisting data from the Hyperledger Fabric only, no delete operations involved.
- The following API’s are part of the database services:
- PersistenceFactory, responsible for platform based blockchain.
- Persist, has a set of getters, and setters to get services such as CRUDService, MetricServices, and PgService.
- PgService is responsible to connect, and perform any data manipulation.
- CRUDService, has a set of platform specific, and interacts with models that are storing data related to Hyperledger Fabric network blockchain.
- MetricService, is in charge of computing statistics of the blockchain activity, per hours, minutes, and organizations.
Below diagram shows above mentioned API’s.