UPDATE: I think I may have found and adapter a proper solution for this challenge. Gonna test it tomorrow and hopefully gonna share it in time with y'all. CHEERS
I wanted to try adding several databases to my learning project and also more complex relationships. What's the best way to do so?
Is the way the documentation wants to teach this the right one? The link to it is: https://docs.nestjs.com/techniques/database#multiple-databases
I'm asking, since I have a huge database with many tables, resulting in endless entities, which in the end happily wait to be all included on the app.module import.
I tried handling them without the entities, making them entirely obsolete with raw SQL queries, since SQL is far easier to use for me. But I am curious how the pros out there handle this by using the entity classes.
Any links and references to demo project - handling as many datasources and database tables as possible, woulda be highly appreciated.
Aucun commentaire:
Enregistrer un commentaire