Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Question - Can this be used to convert DB platforms? #12

Open
crazytonyi opened this issue Sep 27, 2016 · 1 comment
Open

Feature Question - Can this be used to convert DB platforms? #12

crazytonyi opened this issue Sep 27, 2016 · 1 comment
Labels

Comments

@crazytonyi
Copy link

Sorry that this is flagged as an issue. Really more of a question that you might want to consider touching on in your wiki or expanding on as a dedicated feature...

So the DB connector uses PDO, does this mean this is intended to work with Sugar instances on various DB platforms (that Sugar already supports) like SQL Server, DB2, and Oracle? If this is hypothetically possible, has the tool been QA'd to confirm reliable functionality on the various permutations of the supported DB platforms?

Assuming that use of PDO is meant to insure the tool can connect to any Sugar instance's DB, does this mean that the tool could, hypothetically, be used to convert a given Sugar instance's DB from one platform to another? If all it is doing is connecting via the relevant DB driver over a PDO object and then using sugar-specific domain-based knowledge to push/pull the data in a "Sugar aware" way, could the tool include some sort of "clone" function that not only could do a pure 1-to-1 clone of a given instance, but also (provided the correct, functional details are passed in to connect to two different DB platforms) "move" the data from one DB platform to another (for example, pull the data from a MySQL-based instance and push it into a SQL Server-based instance)? Or is this still the sort of ambitious task best left to dedicated data-transfer tools like Talend?

@remisauvat
Copy link

We use the PDO connector with the goal of being able to extend to all DB vendors supported by Sugar, but for now we only have tested it with a MySQL back-end for various Sugar and PHP versions.

One issue with using a PHP tool to perform an 1-to-1 clone would be the inability to use multiple sugar instances in one process. Because PHP classes and functions from one instance would overlap the other.
One way around would be to convert the instance to an intermediary format (CSV, JSON, ...) and then import to the destination instance.
Another idea would be to connect to the sugar instances using the rest API, but I suspect some tables are not available in REST.

So for now, if you need to migrate from MySQL to Oracle for example, the best way would be to use a SQL compatible format or use an ETL like Talend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants