diff --git a/decoders/connector/storage/database/assets/logo.png b/decoders/connector/storage/database/assets/logo.png new file mode 100644 index 00000000..5e0de348 Binary files /dev/null and b/decoders/connector/storage/database/assets/logo.png differ diff --git a/decoders/connector/storage/database/connector.jsonc b/decoders/connector/storage/database/connector.jsonc new file mode 100644 index 00000000..4fa79bfd --- /dev/null +++ b/decoders/connector/storage/database/connector.jsonc @@ -0,0 +1,13 @@ +{ + "$schema": "../../../../schema/connector.json", + "name": "Database", + "images": { + "logo": "./assets/logo.png" + }, + "versions": { + "v1.0.0": { + "src": "./v1.0.0/payload.js", + "manifest": "./v1.0.0/payload-config.jsonc" + } + } +} diff --git a/decoders/connector/storage/database/description.md b/decoders/connector/storage/database/description.md new file mode 100644 index 00000000..14346fcd --- /dev/null +++ b/decoders/connector/storage/database/description.md @@ -0,0 +1 @@ +You can store any data to TagoIO! Use this connector to differentiate sensors and application data in your device list. diff --git a/decoders/connector/storage/database/v1.0.0/payload-config.jsonc b/decoders/connector/storage/database/v1.0.0/payload-config.jsonc new file mode 100644 index 00000000..32cf6a45 --- /dev/null +++ b/decoders/connector/storage/database/v1.0.0/payload-config.jsonc @@ -0,0 +1,9 @@ +{ + "$schema": "../../../../../schema/connector_details.json", + "description": "../description.md", + "install_text": "It is recommended for you to use this connector with a device of type Managed Data (Mutable), which is set as default for this connector. Managed data allows you to perform delete and edit operations on the data, but does have a maximum amount of different variables it can store. Those are very important operations for data related to application information, user information and other commonly edited data", + "install_end_text": "", + "device_annotation": "", + "device_parameters": [], + "networks": ["../../../../network/storage/v1.0.0/payload.js"] +} diff --git a/decoders/connector/storage/database/v1.0.0/payload.js b/decoders/connector/storage/database/v1.0.0/payload.js new file mode 100644 index 00000000..e69de29b diff --git a/package-lock.json b/package-lock.json index fa5f775e..1a8079ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,7 @@ "@types/validator": "13.11.10", "ajv": "8.13.0", "ajv-formats": "3.0.1", - "better-sqlite3": "10.0.0", + "better-sqlite3": "11.6.0", "knex": "3.1.0", "moment-timezone": "0.5.45", "sqlite3": "5.1.7", @@ -1359,11 +1359,12 @@ ] }, "node_modules/better-sqlite3": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-10.0.0.tgz", - "integrity": "sha512-rOz0JY8bt9oMgrFssP7GnvA5R3yln73y/NizzWqy3WlFth8Ux8+g4r/N9fjX97nn4X1YX6MTER2doNpTu5pqiA==", + "version": "11.6.0", + "resolved": "https://registry.npmjs.org/better-sqlite3/-/better-sqlite3-11.6.0.tgz", + "integrity": "sha512-2J6k/eVxcFYY2SsTxsXrj6XylzHWPxveCn4fKPKZFv/Vqn/Cd7lOuX4d7rGQXT5zL+97MkNL3nSbCrIoe3LkgA==", "dev": true, "hasInstallScript": true, + "license": "MIT", "dependencies": { "bindings": "^1.5.0", "prebuild-install": "^7.1.1" diff --git a/package.json b/package.json index 72806c80..664e8d54 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "@types/validator": "13.11.10", "ajv": "8.13.0", "ajv-formats": "3.0.1", - "better-sqlite3": "10.0.0", + "better-sqlite3": "11.6.0", "knex": "3.1.0", "moment-timezone": "0.5.45", "sqlite3": "5.1.7", @@ -27,4 +27,4 @@ "vm2": "3.9.19", "zod": "3.23.8" } -} +} \ No newline at end of file