db
Last updated: 2024-11-07 21:04:59.621942 File source: link on GitLab
db
Table of Contents
Specification
Description
This package defines the local database functionality for the Device Management Service (DMS). Currently two repository structures have been implemented:
gorm
: which is a SQlite database implementation.clover
: which is aNoSQL
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 thedb
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.
Source file
Rendered from source file
Package Specification
Refer to the README file defined in the repositories folder for specification of the package.
Last updated