Giter VIP home page Giter VIP logo

sequelize-aws-data-api-connector's Introduction

AWS Data API connector for Sequelize

Install

You will need Sequelize

$ yarn add sequelize
$ yarn add sequelize-aws-data-api-connector

Usage

import { enableDataAPI } from 'sequelize-aws-data-api-connector';

const sequelize = new Sequelize(); // your sequelize instance
const resourceArn = 'arn:aws:rds:us-east-1:1894848215:cluster:cluster-name';
const secretArn = 'arn:aws:secretsmanager:us-east-1:1894848215:secret:staging/rds-db-credentials/cluster-name-As$jOI';
const database = 'database_name'; // must be the same from Sequelize's 
const region = 'us-east-1';
const verbose = false; // true to log all queries and other data. Default if false

enableDataAPI(sequelize, { resourceArn, secretArn, database, region, verbose });

Supported Sequelize Versions

Currently only tested on [email protected]

sequelize-aws-data-api-connector's People

Contributors

dependabot[bot] avatar nayan-datman avatar sergiofilhowz avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

sequelize-aws-data-api-connector's Issues

Custom endpoint parameter in enableDataAPI method

Hello!

I wanted to create integration tests with your library but came to a dead end.

I have set up MySQL as DB and koxudaxi/local-data-api as AWS-like proxy in docker and the last missing piece is a change of endpoint in enableDataAPI method to use my AWS-like proxy url instead of default AWS url.

I think this change should be small, I can contribute, but let me know what you think about feature like this.

BR,
Radek

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.