any-queue-mysql
v0.1.0
Published
MySQL persistence interface for any-queue
Downloads
2
Readme
any-queue-mysql
MySQL persistence interface for any-queue
Install
$ npm install --save any-queue-mysql
Test
In order to test the library, mysql-server must be installed in the system and a database must be created. Configuration parameters are provided via dotenv.
Then, run npm install && npm test
.
Usage
The library is used together with any-queue
. See any-queue for more details.
import { Queue } from "any-queue";
import anyQueueMysql from "any-queue-mysql";
const persistenceInterface = anyQueueMysql({
uri: "mysql://root:nt3yx7ao2e9@localhost/any-queue-demo"
});
const queue = Queue({ persistenceInterface, name: "foo" });
API
anyQueueMysql({ uri, config })
Returns a mysql connector.
uri
- db uriconfig
- dialectOptions, as described in sequelize docs
License
MIT © Gerardo Munguia