Re: Better DB Class MySQL

From: Date: Sun, 10 Feb 2008 12:26:34 +0000
Subject: Re: Better DB Class MySQL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-269025@lists.php.net to get a copy of this message
    // Terminator Style Function simply in coolness
    public function Terminator($tbl) {
    }
"Terminator"? Is this something I don't know about or is it simply a method that goes around killing other methods? Anyhoo, you may want to look at this: http://www.phpguru.org/article.php?ne_id=121 http://www.phpguru.org/pear_db_replacement/ It's a MySQL only database wrapper that mimics the PEAR::DB API, (which is, as I've been reminded a million times (roughly), obsolete), but is one sixth the size. Important if one of of your goals is speed. You could say if your goal is speed why use a wrapper at all? But it has the following advantages: 1. If you start off with PEAR::DB (for example) and then need to squeeze extra performance out of your site, the database wrapper is a good place to start (since it is generally used a lot). 2. It has useful methods (ie the get* methods) which speed up development time greatly. 3. I thought of others, but then subsequently forgot them. Doh. -- Richard Heyes http://www.websupportsolutions.co.uk Knowledge Base and Helpdesk software for £299 hosted for you - no installation, no maintenance, new features automatic and free ** New Helpdesk demo now available **

« previous php.general (#269025) next »