Scoped singleton archive
Hi, thanks for the module, I've an issue regarding to differents DB with the same sequence.
Reading your code I could check your archive lib is defined at the beginning of your code, instead of do it in the getInstance method so if you have two DB with the same sequence it return error.
Can you fix it please? It's just move the definition fron the top to inside the getInstance method.
Thanks in advance
Sorry, my linter does not check on modules, it's a little more...
I'm not sure I get it. Tell me if you still have any problem and I'll try to help you.
Hi, I'd to fork your module... if you use a singleton to avoid sequence names repetition then you can't use the same sequence in 2 different DB... and I use your module in 2 cloned DB, to avoid problems with de DBs I used a Map yo define the scope.
I've never made a pull request, if You want I can see how and send you my modifications.
Best regards.
I'm having the same issue, I'm returning multiple connections to the same database and each one of them try to register counters and crash. Require a scoped sequence_archive to fix this issue!
I already fixed it with a map with the connection as the key, tell me if you need it
Regards
Please, feel free to send a PR