Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4577 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17596 invoked by uid 1010); 25 Sep 2003 10:37:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 17560 invoked from network); 25 Sep 2003 10:37:30 -0000 Received: from unknown (HELO smtpzilla3.xs4all.nl) (194.109.127.139) by pb1.pair.com with SMTP; 25 Sep 2003 10:37:30 -0000 Received: from tail.dwerg.net (dwerg.xs4all.nl [213.84.21.204]) by smtpzilla3.xs4all.nl (8.12.9/8.12.9) with ESMTP id h8PAbTNL037705 for ; Thu, 25 Sep 2003 12:37:29 +0200 (CEST) To: internals@lists.php.net Content-Type: text/plain Message-ID: <1064486293.32274.17.camel@tail.dwerg.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Thu, 25 Sep 2003 12:38:13 +0200 Content-Transfer-Encoding: 7bit Subject: [Fwd: Re: [PHP-DEV] differences in the RDBMS ext API's] From: manfred.stienstra@dwerg.net (Manfred Stienstra) On Wed, 2003-09-24 at 14:49, Lukas Smith wrote: > ok while talking to marcus about sqlite it came up again that some ext > have different function names for similar things which is really > unnecessary. Here is a list of some most used (just a guestimate) > functions. I used the mysql extension as the basis for the most part. Python has a unified database API for all the databases (DB API 2.0), but they can actually get away with it because you can use import to drag a module into the namespace. If I understand correctly, all the php ext's are all in the same namespace, so a giving all the functions the same name would be impossible. I guess you could use xxx_functionname for every function that would make it a lot clearer. Most people use the setup-query-walk_through_result-free routine to query the database, so I don't see a lot of trouble defining a common API. I guess someone should make a proposition for this... Manfred