You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Working on the database for the PSR4 I broken up the classes and reworked most of the code.
I'm now working on the initialization of the connection, and I'm wondering: what the heck is the purpose of the SSI credentials?
I mean: if we use another connection for SSI, this connection should have access to the original database anyway, because we need all the content of the members table, permissions, etc.
There is quite a bit of stuff we cannot do without.
So, we'd need to somehow swap database at some points in the SSI-related code in order to keep the queries point to the right databases.
From the use-cases I can think of, this solution honestly is not really something that you see around every day.
The way I'm reworking the code would allow to instantiate multiple connections (give the fact I'm dropping the singleton), so I think that having database return the connection to "our" database and nothing else. Then, if someone needs a connection to a different db, he can instantiate a new connection and have its own "database" function (maybe with a different name) and do it's work.
Bottom line: I propose to remove any reference to SSI-related connection databases and live with just one connection inside our code.
What do you think?
The text was updated successfully, but these errors were encountered:
Working on the database for the PSR4 I broken up the classes and reworked most of the code.
I'm now working on the initialization of the connection, and I'm wondering: what the heck is the purpose of the SSI credentials?
I mean: if we use another connection for SSI, this connection should have access to the original database anyway, because we need all the content of the members table, permissions, etc.
There is quite a bit of stuff we cannot do without.
So, we'd need to somehow swap database at some points in the SSI-related code in order to keep the queries point to the right databases.
From the use-cases I can think of, this solution honestly is not really something that you see around every day.
The way I'm reworking the code would allow to instantiate multiple connections (give the fact I'm dropping the singleton), so I think that having database return the connection to "our" database and nothing else. Then, if someone needs a connection to a different db, he can instantiate a new connection and have its own "database" function (maybe with a different name) and do it's work.
Bottom line: I propose to remove any reference to SSI-related connection databases and live with just one connection inside our code.
What do you think?
The text was updated successfully, but these errors were encountered: