Hi. I have a DbClient service which needs some DbConfig (host, port). Then I’ve got a UserRepo service which depends on the DbClient.
I need to run a script which copies data from one Db instance to another (at different hosts), using methods exposed by UserRepo.
So my program needs DbConfigA => DbClientA => UserRepoA and DbConfigB => DbClientB => UserRepoB.
How can I achieve this? Thanks!