Database utility functions for nqminds IoT platform, providing a SQLite-based implementation for creating datasets, adding and querying data with support for ndarray fields. Version 0.7.2 is the latest stable release. This package is specific to the nqm ecosystem and not intended for general database usage. It offers a promise-based API with functions like openDatabase, createDataset, addData, getData, and ndarray utilities. The package is outdated with no recent updates and limited documentation.
npm install nqm-iot-database-utilsVerified import paths — ran on the pinned version, not inferred.
Demonstrates opening an in-memory SQLite database, creating a dataset with two numeric fields, inserting 100 documents, and querying with a filter and sort.
Use require() instead of import.
Consider migrating to a maintained alternative unless tied to nqm ecosystem.
Refer to the package's own documentation or source code for schema definitions.
Use the provided methods (createDataset, addData, getData) instead of native sqlite3 operations.
Ensure compatibility with your Node version; test before use.
Run 'npm install nqm-iot-database-utils' in your project.
Use 'const sqliteUtils = require("nqm-iot-database-utils");'Add .catch() to promise chain to handle errors.
Use 'memory' with 'r+' or omit the flag for in-memory databases.
No dependency data recorded yet.