any-queue-mysql

0.1.0 • Public • Published

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.

  • uri - db uri
  • config - dialectOptions, as described in sequelize docs

License

MIT © Gerardo Munguia

/any-queue-mysql/

    Package Sidebar

    Install

    npm i any-queue-mysql

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    7.52 kB

    Total Files

    9

    Last publish

    Collaborators

    • gmunguia