Answer the question
In order to leave comments, you need to log in
How normal is it to use two PDO objects in an application?
Greetings.
It so happened that in the application, two ready-made solutions from github use different ways of working with the same mysql database.
From one component, I can get a PDO object, it politely gives it back, and the second either supports all possible connection options, but you can’t just transfer a ready-made PDO object there. So the question is brewing, how rational is it to use two different database connections in an application?
By the way, we are talking about the RedbeanPHP and Illuminate/database libs
ps
It is worth noting that I refused such a solution as I did from Illuminate-based Liba
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question