0.1.0 • Published 6 years ago

any-queue-mysql v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

any-queue-mysql

npm version

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.

License

MIT © Gerardo Munguia