Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add adapter reloading when using different instances of sails #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nicolapalavecino
Copy link

Hi! 馃憢

Firstly, thanks for your work on this project! 馃檪

Today I used patch-package to patch sails-hook-orm@4.0.2 for the project I'm working on and it works successfully.

I was trying to use two different instances of Sails to programmatically port some data from one database to another (same database technology but different clusters).

const sails1 = new Sails();
const sails2 = new Sails();
sails1.load(/* database configuration 1 */)
sails2.load(/* database configuration 2 */) // <-- ORM fails here since adapter is already registered

// Make data relocation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant