sequelize-aws-x-ray

Sequelize extension for AWS X-Ray

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
sequelize-aws-x-ray
411.0.16 years ago6 years agoMinified + gzip package size for sequelize-aws-x-ray in KB

Readme

sequelize-aws-x-ray
The sequelize-aws-x-ray module is a Sequelize extension for AWS X-Ray.

Installation

MySQL (with mysql module)
npm install --save sequelize-aws-x-ray-mysql

MySQL (with mysql2 module)
npm install --save sequelize-aws-x-ray-mysql2

PostgreSQL (with pg module)
npm install --save sequelize-aws-x-ray-pg

Usage

MySQL (with mysql module)
var Sequelize = require('sequelize');

var db = new Sequelize({
    dialect: 'mysql',
    dialectModulePath: 'sequelize-aws-x-ray-mysql',
});

MySQL (with mysql2 module)
var Sequelize = require('sequelize');

var db = new Sequelize({
    dialect: 'mysql',
    dialectModulePath: 'sequelize-aws-x-ray-mysql2',
});

PostgreSQL (with pg module)
var Sequelize = require('sequelize');

var db = new Sequelize({
    dialect: 'postgres',
    dialectModulePath: 'sequelize-aws-x-ray-pg',
});