Re: google SoC - dbobj

From: Date: Wed, 21 Mar 2007 12:37:23 +0000
Subject: Re: google SoC - dbobj
References: 1 2 3 4 5 6 7 8 9 10 11  Groups: php.internals 
Request: Send a blank email to internals+get-28524@lists.php.net to get a copy of this message
> Its a question of maintainability. Stuff like reverse engineering > schema's from a database is simply not sensible to be done by C code. It > requires a low barrier to entry, the ability to quickly fix things if > you encounter a newer or very old obscure RDBMS version etc. Doing database schema discovery is a thing that should be implemented in PHP, and should never be considered a "core" ORM feature. What I've done is a callback hook in the system, that let's the PHP script get this data (from schema discovery, an XML file or anything else). Maintainability is an important point, and I've been trying to build a manageable code. The many class/object concept is mainly for this. I think most of the code is well structured and with a well-written documentation maintainability can be achieved. Adam

« previous php.internals (#28524) next »