Re: PEAR DB - Useful?

From: Jan Pieter Kunst (devnull_at_cauce.org)
Date: 01/08/05


Date: Sat, 08 Jan 2005 11:54:40 +0100

ryan@carsonworkshops.com wrote:
> What are people's thoughts on this class? IMHO, it seems like it's
> overkill for what most developers need.
>
> I've been using it for awhile now, and I tend to use only about 3% of
> it's functionality.
>
> Thoughts? Opinions?

I use it and like it, even if the part I like is only ..% of its
functionality. What I like:

- central error reporting, no "or die()" all over the place

- nice shortcuts for getting single values or arrays in one pass,
without looping (getOne(), getCol(), getAssoc())

- automatic escaping of values with prepared statements:

$query = 'insert into table (field1, field2) values(?,?)';
$pear_db_object->query($query, array($raw_data1, $raw_data2));

JP

-- 
Sorry, <devnull@cauce.org> is a spam trap.
Real e-mail address unavailable. 5000+ spams per month.


Relevant Pages

  • Re: Is there a "Large Scale Python Software Design" ?
    ... perspective - what functionality the application provides & its scope. ... million lines of code (all C++ & about 60-70 developers), ... different custom servers, a full web-based administrative interface, an end-user ... I've found that competitors in our same space tend to have ...
    (comp.lang.python)
  • Re: XP, a Criticism
    ... >> incrementally and use refactoring to expand the necessary functionality, ... > XP relies very heavily on customer participation and unless a customer ... > requirements to both the developers and the QA people. ...
    (comp.object)
  • Language improvement: Add scope to class member fields
    ... times subsets of functionality where only certain methods should have access ... Where scope can organize a set of methods with access to particular variables. ... Compiler errors WXS123, 2006-05-25 ... When you have a team of developers adding functionality to ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: ProDOS Plus
    ... This might depend on how many application developers actually followed Apple's guidelines regarding ProDOS. ... Any new functionality would still be subject to less efficient testing ... (and this is a good reason to limit the new functionality). ...
    (comp.sys.apple2)
  • Re: Upgrade from VS2005 Pro to VSTO?
    ... developers who, I assume, represent a small share of the VS market anyway. ... I see that Team Suite starts at about GBP1600, which seems a bit too much ... I guess I'll just stick with the current VSTO SE Beta version for now! ... to be able to add the Office functionality to Pro)? ...
    (microsoft.public.vsnet.general)