electrode-ota-server-dao-factory

4.4.4 • Public • Published

electrode-ota-server-dao-factory

This project is part of the electrode-ota-server

It is not meant to be used as a standalone module, use at your own risk.

This service provides an abstraction layer for the DAO data store. It allows for pluggable datastore driver used to power DAO storage. Currently support datastores are MariaDB (electrode-ota-server-dao-mariadb) and Cassandra (electrode-ota-server-dao-cassandra).

Install

$ npm install electrode-ota-server-dao-factory

Usage

  • Install this module in your package.json.
  • Update your config to use this package, specify a driver.
  • Add the driver and driver options.

In this sample configuration, we are using the MariaDB driver to save DAO instances.

{
    "electrode-ota-server-dao-factory": {
        "options": {
            "driver": "electrode-ota-server-dao-mariadb"
        }
    },
    "electrode-ota-server-dao-mariadb": {
        "options": {
            host: '127.0.0.1',
            user: 'root',
            password: 'root'
        }
    }
}

Package Sidebar

Install

npm i electrode-ota-server-dao-factory

Weekly Downloads

1

Version

4.4.4

License

Apache-2.0

Unpacked Size

98.5 kB

Total Files

12

Last publish

Collaborators

  • scrajesh
  • datvong