2.0.8 • Published 6 months ago

zuper-stream v2.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
6 months ago

Installation

npm i zuper-stream

Usage

Initialize Zuper Stream

const ZuperStream = require('zuper-stream');

Monitor MySQL Events and Publish to Kakfa

const company_ids = [1,2 ........n];

const mysqlStreamOptions = {
    streamName: 'MYSQL_STREAM',
    db: 'zuper_pro',
    tables: ['users', 'companies'],
    column: 'company_id',
    column_ids: company_ids,
    statements: 'ALL'
}

zuperStream.startMySQLStream(mysqlStreamOptions);

Monitor Mongo Events and Publish to Kakfa

const company_ids = [1,2 ........n];

const mongoStreamOptions = {
    streamName: 'MONGO_STREAM',
    db: 'zuper_service',
    collection: 'jobs',
    pipeline: [{ "$match": { "fullDocument.company_id": { "$in": company_ids } } }]
}

zuperStream.startMongoStream(mongoStreamOptions);
2.0.7

6 months ago

2.0.6

6 months ago

2.0.8

6 months ago

2.0.4

7 months ago

2.0.2

7 months ago

2.1.0

7 months ago

2.0.1

10 months ago

2.0.0

10 months ago

1.1.0

10 months ago

1.0.1

10 months ago

1.0.0

11 months ago

1.0.1-beta

11 months ago

1.0.0-beta

11 months ago