4.8.4 • Published 3 years ago

electrode-ota-server-dao-mariadb v4.8.4

Weekly downloads
47
License
Apache-2.0
Repository
github
Last release
3 years ago

electrode-ota-server-dao-mariadb

An implementation of the Electrode OTA Server's data access layer using MariaDB as a back-end.

Usage

In your electrode ota server implementation, include this module as a dependency.

npm install --save electrode-ota-server-dao-mariadb

Update your OTA server configuration to override the DAO plugin. This is assuming your config is in JavaScript format (not JSON).

const conf = {
    plugins : {
        // ...

        "electrode-ota-server-dao-plugin" : {
            module : "electrode-ota-server-dao-mariadb",
            // connection options based on typeorm;
            // 'type' and 'entities' are defaulted but may be overriden
            options : {
                clusterConfig : {
                    canRetry : true,
                    defaultSelector : "ORDER",
                    removeNodeErrorCount : 5,
                    restoreNodeTimeout : 0,
                },
                poolConfigs : [{
                    database: "bento_ota",
                    host: "localhost",
                    password: "password",
                    port: 3306,
                    user: "user",
                }],
            }
        },

        // ...
    }
}

The clusterConfig is the settings for the mysql PoolCluster options.

The poolConfigs property is an array of Connection options.

The database schema can be found at electrode-ota-mariadb-schema

To run tests

Start docker MariaDB in electrode-ota-mariadb-schema

% docker-compose up ota-db

Run tests in this directory

% yarn test

Run build (compiles typescript)

% yarn build
4.8.4

3 years ago

4.8.3

3 years ago

4.8.2

4 years ago

4.8.1

4 years ago

4.8.0

4 years ago

4.7.3-beta.1

4 years ago

4.7.3-beta.0

4 years ago

4.7.2

4 years ago

4.7.1

4 years ago

4.7.0

4 years ago

4.6.12

4 years ago

4.6.11

4 years ago

4.6.10-beta.0

4 years ago

4.6.10-beta.12

4 years ago

4.6.9

4 years ago

4.6.8

4 years ago

4.6.7

4 years ago

4.6.6

4 years ago

4.6.3

4 years ago

4.6.5

4 years ago

4.6.4

4 years ago

4.6.2

5 years ago

4.6.1

5 years ago

4.6.0

5 years ago

4.5.0

5 years ago

4.4.23

5 years ago

4.4.21

5 years ago

4.4.20

5 years ago

4.4.19

5 years ago

4.4.17

6 years ago

4.4.16

6 years ago

4.4.15

6 years ago

4.4.14

6 years ago

4.4.13

6 years ago

4.4.12

6 years ago

4.4.11

6 years ago

4.4.10

6 years ago

4.4.9

6 years ago

4.4.8

6 years ago

4.4.7

6 years ago

4.4.6

6 years ago

4.4.5

6 years ago

4.4.4

6 years ago

4.4.3

6 years ago

4.4.2

6 years ago

4.4.1-0

6 years ago

4.4.0-0

6 years ago

4.3.0-0

6 years ago

4.2.4-0

6 years ago

4.2.3-0

6 years ago

4.2.2-0

6 years ago

4.2.1-0

6 years ago

4.2.0-0

6 years ago

4.1.0-0

6 years ago

4.0.0-0

6 years ago

3.2.6-0

6 years ago

3.2.5-0

6 years ago

3.2.4-0

6 years ago

3.2.3-0

6 years ago

3.2.2-0

6 years ago

3.2.1-0

6 years ago