TeamPass icon indicating copy to clipboard operation
TeamPass copied to clipboard

Oracle instead of MySQL

Open sinuhepop opened this issue 13 years ago • 3 comments

In out organization we are looking for a centralized password management and it seems that TeamPass fits almost perfectly. But the problem is that we are only allowed to use Oracle databases.

Is possible to switch from MySQL to Oracle? I think it must be easy if the project uses Doctrine or any other ORM. Does it? Otherwise, what would be the path to follow?

Thanks.

sinuhepop avatar Sep 03 '13 23:09 sinuhepop

T oday even if a library is used, some external direct queries are performed. This make that it is not plug and play to move to Oracle.

The main next improvement for TP is that I started to migrate from MySQL to MySQLi. For this work, I've planned to clean up and centralize all query in a unique library. So I think that it will be easier to adapt TP for Oracle based on this next "TP MySQLi" release. My plan is to release it before end of this year .

N ote: I personnaly don't have any knowledge of Oracle. So I will not be able to do or test this change.

nilsteampassnet avatar Sep 04 '13 05:09 nilsteampassnet

Hi,

Oh, that's a restriction for us :s

At the moment, are all queries in a single place, or easy to locate? Maybe we just could make a patch while you are implementing this feature.

Thanks for your eagerness!

sinuhepop avatar Sep 04 '13 07:09 sinuhepop

I've taken a look to your work. It seems that you don't use any ORM or database related library (now I know a little what MySQLi is). I'm not into PHP, but I'd recommend you to think about using an ORM, for example http://www.doctrine-project.org/. It will help you a lot creating dynamic queries (no more string concatenation) and it will be database agnostic, so TeamPass could be used with a lot of RDBMS, only changing drivers.

sinuhepop avatar Sep 04 '13 11:09 sinuhepop