Giter Site home page Giter Site logo

drg-adaptive / db-migrate-pg-aurora Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 2.88 MB

A driver for db-migrate to connect to Postgres Aurora Serverless through the Data API

License: MIT License

JavaScript 3.64% TypeScript 96.36%
aws aws-aurora aws-serverless postgres db-migrate nodejs ci-cd aurora-serverless driver

db-migrate-pg-aurora's Introduction

Welcome to db-migrate-pg-aurora πŸ‘‹

stability npm Maintainability Build Status Dependency Status devDependency Status

AWS Postgres Aurora Serverless db-migrate Driver

A driver for db-migrate to connect to PostgreSQL Aurora Serverless through the Data API

🏠 Homepage

Install

yarn install

Usage

See db-migrate for more information.

Configuration Example

Add the following configuration to your database.json file:

{
  "prod": {
    "driver": {
      "require": "db-migrate-pg-aurora"
    },
    "database": "<Database Name>",
    "schema": "<Schema Name>",
    "secretArn": "<Secrets Manager ARN that contains credentials for the cluster> ",
    "resourceArn": "<Database Cluster ARN to connect to>",
    "region": "<AWS Region to connect to>",
    "maxRetries": 3,
    "connectTimeout": 45000
  }
}

Run tests

yarn test

Author

πŸ‘€ Elisha Boozer [email protected]

🀝 Contributing

Contributions, issues and feature requests are welcome!

Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

πŸ“ License

Copyright Β© 2019 DRG Adaptive.

This project is MIT licensed.

FOSSA Status


This README was generated with ❀️ by readme-md-generator

db-migrate-pg-aurora's People

Contributors

newtrinopigui avatar

Stargazers

 avatar

Watchers

 avatar  avatar

db-migrate-pg-aurora's Issues

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here is some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Cannot push to the Git repository.

semantic-release cannot push the version tag to the branch master on the remote Git repository with URL https://[secure]@github.com/drg-adaptive/db-migrate-pg-aurora.git.

This can be caused by:


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

Support for endpoint in rdsParams

Hi! I use the serverless framework and its plugin data-api-local-serverless for local development. The plugin generates starts a mock data-api service on a local endpoint.

At the moment, this package doesn't support setting a custom endpoint on the RDSDataService instance (see here). Please consider adding support for it? I'm happy to submit a PR.

driver.close does not call the provided callback

a difference between your driver and others is that no callback is ever caller after all migrations is applied:

DBMigrate.getInstance(true,{})
    .sync()
    .then(() =>console.log('migration done'))
    .catch((err) => console.log('migration failed', err))

will never have his then or catch called

I found that the source of this problem is that you never call the provided callback during driver.close(cb);

this callback is responsible for terminating the promise of all operations. (see db-migrate/lib/commands/on-complete.js:11)

do you still maintains this repository, and if so, would you merge a PR that fix this bug if I fill one ?

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.