Generic SQL client for the Hemera microservices framework using Knex. Version 7.0.0 is the latest stable release. This package provides a store pattern for SQL databases, supporting MySQL, MariaDB, SQLite, and PostgreSQL via Knex. It integrates with Hemera's plugin system and optionally with Hemera-Joi for validation. The package requires a Nats connection for Hemera and a Knex configuration. It wraps Knex to provide CRUD operations within the Hemera pattern. The release cadence is irregular; this version supports Hemera v7.
npm install hemera-sql-storeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to initialize Hemera with Nats, register the SQL store plugin, and perform a create operation.
Ensure you use the correct version of Hemera (v7) and follow the new plugin pattern.
Install 'mysql', 'pg', or 'sqlite3' as needed.
Ensure a Nats server is running and the connection options are correct.
Verify that the host, port, user, password, and database are valid.
Run 'npm install knex' in your project.
Run 'npm install mysql' (or appropriate driver).
Install 'mysql' package and ensure it's in node_modules.
Start your MySQL or MariaDB server, or change the connection host/port.