This package defines the local database functionality for the Device Management Service (DMS). Currently two repository structures have been implemented:
clover: which is a NoSQL or document oriented database implementation.
Structure and Organisation
Here is quick overview of the contents of this pacakge:
README: Current file which is aimed towards developers who wish to use and modify the package functionality.
db.go: This file defines the method which opens an SQlite database at a path set by the config parameter work_dir, applies migration and returns the db instance.
repositories: This folder contains the sub-packages of the db package.
specs: This folder contains the class diagram of the package.
Class Diagram
The class diagram for the db package is shown below.