Swap databases with a single config change#190
Swap databases with a single config change#190choonkending merged 2 commits intoreactGo:masterfrom mjewell:easilySwitchDatabaseConfigs
Conversation
…rely through config
|
Hey, I was thinking more about the way databases are used and it still seemed kinda awkward to add support for new databases, as well as to switch between them. I took a shot at getting it to work where all you have to change is the
As a result, if you want to add a new database like I did/would do for the Postgres change, all the associated code goes to a single place with no changes required in the main server logic. Additionally, the server can handle incremental changes: if you just want your new database to support users but not topics, just define I think it helps to get a little closer to #156, but any feedback is appreciated |
|
@mjewell This is a very good abstraction.
I believe this is the way forward. I will pull and test and hopefully merge this in today. Thanks very much for this! |
|
👍 I really appreciate your help with this change! Merged! |
No description provided.