Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:28524 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52029 invoked by uid 1010); 21 Mar 2007 12:37:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 52014 invoked from network); 21 Mar 2007 12:37:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Mar 2007 12:37:54 -0000 Authentication-Results: pb1.pair.com header.from=thefirstofall@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=thefirstofall@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 66.249.92.173 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: thefirstofall@gmail.com X-Host-Fingerprint: 66.249.92.173 ug-out-1314.google.com Linux 2.4/2.6 Received: from [66.249.92.173] ([66.249.92.173:8346] helo=ug-out-1314.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/A2-21072-02721064 for ; Wed, 21 Mar 2007 07:37:54 -0500 Received: by ug-out-1314.google.com with SMTP id o4so316522uge for ; Wed, 21 Mar 2007 05:37:50 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=h4VI3JAtJxTVULrec6ZImN7SsGSl4sLZBWDG+zf+4DLzo+Ku0A46uTQnAEbhy72DDnXPrn8ymHplweihyfK+4v9bd505x3A4ps92X3RmWVLjCatVpKEOqYq/b/9ohyEaILs87003E3RJBp9Iz3Kh6Jro27fC3bIzqb55sMg3Hqc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=W/f/PxlAidb4MPV5Xc32fVwjnew7gljjnVoZjIynBezBZw19Tl65zaKnid9My8TriZSS4zFOvdRxPfERnqFdWexnOJLPwQx0y0agDoSfjuYBeF77L/KgRy1JNTQYdncEBe0qzIwpp6t+Pnd26WlzCKYWFYR9WnatA4BHf8FUnt8= Received: by 10.67.121.15 with SMTP id y15mr3038900ugm.1174480670026; Wed, 21 Mar 2007 05:37:50 -0700 (PDT) Received: from ?192.168.128.205? ( [83.216.42.179]) by mx.google.com with ESMTP id 54sm554958ugp.2007.03.21.05.37.41; Wed, 21 Mar 2007 05:37:47 -0700 (PDT) To: Lukas Kahwe Smith Cc: Robin Ericsson , internals@lists.php.net In-Reply-To: <460118F8.9050807@pooteeweet.org> References: <1174134488.8667.33.camel@lena> <45FC74A5.6080307@pooteeweet.org> <1174231834.12274.110.camel@lena> <45FEBD70.2090000@zend.com> <1174330743.9134.2.camel@lena> <41721.216.230.84.67.1174341117.squirrel@www.l-i-e.com> <1174342387.14657.86.camel@lena> <1174476282.5402.35.camel@lena> <460118F8.9050807@pooteeweet.org> Content-Type: text/plain Date: Wed, 21 Mar 2007 13:37:23 +0100 Message-ID: <1174480643.5402.91.camel@lena> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] google SoC - dbobj From: thefirstofall@gmail.com (=?ISO-8859-1?Q?Bank=F3_=C1d=E1m?=) > 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