Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Feature Request] - Support models from alternate database #95
It would be great if xPDO allowed working with models from an alternate database.
Today, if you want to work with
However, this is an inefficient way of attempting to access a table in an alternate database if it is already on the same server and the current connection's user has proper access permissions.
If there was a way for individual packages to override the database to use, it would open up new opportunities, or at the very least, become more efficient in some scenarios.
The best workaround I have found so far is to leverage a View:
CREATE VIEW local_db.custom_table AS SELECT * FROM foreign_db.custom_table;
@opengeek in your experience, would you envision support for this feature a "large undertaking," or could someone less-versed in xPDO potentially assist?
I'm happy to contribute a working PR, but wondering if you could provide some recommendation on a starting point?