npm install @fxjs/db-driver
- MySQL
- SQLite
- Redis
- @fxjs/db-driver-tdengine
- @fxjs/db-driver-elasticsearch
- @fxjs/db-driver-mongodb
const DbDriver = require("@fxjs/db-driver");
// use mysql protocol
const driver = new DbDrivers("mysql://username:password@localhost/database");
To test, first make sure you have development dependencies installed. Go to the root folder and do:
npm install
Then, just run the tests.
npm test
If you have a supported database server and want to test against it, first install the module:
And then run:
URI=mysql://username:password@localhost/database fibjs test/run-db