Re: DB portability
| From: | mlemos at acm dot org | Date: | Wed, 03 Jan 2001 13:55:05 +0000 |
| Subject: | Re: DB portability | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32489@lists.php.net to get a copy of this message | ||
Hello Nathan,
Nathan Cook wrote:
>
> I am looking at undertaking a very large project that will be handled
> initially in MySQL. Down the road we may choose a corporate db such as
> Oracle. My thought was since we will have thousands of lines of code to
> migrate to the new db, I could create a global script that is required by
> each individual script.
>
> This global script would alias typical database functions (connects,
> queries, etc...) to PHP's MySQL functions for the time being and I could
> adjust the alias in one central location if we switch from MySQL (I never
> foresee this happening but you never know).
>
> Can any of you see any repercussions of this central database alias script?
I'm afraid things are not that simple. DBMS work in very different ways
that it isn't
just a matter of defining alias for each database.
You may want to try Metabase. Not only it abstracts the access to the
database but it also abstracts the installation of the schemas so your
applications can be completely database independent.
http://phpclasses.UpperDesign.com/browse.html/package/20
Manuel Lemos