4.8.4 • Published 4 years ago

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

Weekly downloads
47
License
Apache-2.0
Repository
github
Last release
4 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

4 years ago

4.8.3

5 years ago

4.8.2

5 years ago

4.8.1

5 years ago

4.8.0

5 years ago

4.7.3-beta.1

5 years ago

4.7.3-beta.0

5 years ago

4.7.2

5 years ago

4.7.1

5 years ago

4.7.0

5 years ago

4.6.12

5 years ago

4.6.11

5 years ago

4.6.10-beta.0

5 years ago

4.6.10-beta.12

5 years ago

4.6.9

5 years ago

4.6.8

5 years ago

4.6.7

5 years ago

4.6.6

5 years ago

4.6.3

5 years ago

4.6.5

5 years ago

4.6.4

5 years ago

4.6.2

6 years ago

4.6.1

6 years ago

4.6.0

6 years ago

4.5.0

6 years ago

4.4.23

6 years ago

4.4.21

6 years ago

4.4.20

6 years ago

4.4.19

6 years ago

4.4.17

7 years ago

4.4.16

7 years ago

4.4.15

7 years ago

4.4.14

7 years ago

4.4.13

7 years ago

4.4.12

7 years ago

4.4.11

7 years ago

4.4.10

7 years ago

4.4.9

7 years ago

4.4.8

7 years ago

4.4.7

7 years ago

4.4.6

7 years ago

4.4.5

7 years ago

4.4.4

7 years ago

4.4.3

7 years ago

4.4.2

7 years ago

4.4.1-0

7 years ago

4.4.0-0

7 years ago

4.3.0-0

7 years ago

4.2.4-0

7 years ago

4.2.3-0

7 years ago

4.2.2-0

7 years ago

4.2.1-0

7 years ago

4.2.0-0

7 years ago

4.1.0-0

7 years ago

4.0.0-0

7 years ago

3.2.6-0

7 years ago

3.2.5-0

7 years ago

3.2.4-0

8 years ago

3.2.3-0

8 years ago

3.2.2-0

8 years ago

3.2.1-0

8 years ago