Re: PDO support (bit of a rant)




"Toby A Inkster" <usenet200705@xxxxxxxxxxxxxxxxx> schreef in bericht
news:hl71j4-h76.ln1@xxxxxxxxxxxxxxxxxxxx
amygdala wrote:

But yet support for it seems to be rather poor. Especially clear
documentation on how to install specific drivers. What is up with that?

PDO's documentation is truly dreadful -- not just how to install drivers,
but the whole thing -- the constants, the exceptions thrown, everything.

Yeah, isn't it?!

It's a really good interface for database programming though. I ported my
CMS from PostgreSQL to MySQL in about 20 minutes. It would have taken me
hours if I'd been using the traditional PHP functions -- and the solution
wouldn't have been as elegant. (The non-PHP script to create the database
tables and populate them with initial data took quite a bit longer to
populate. See http://tobyinkster.co.uk/tag/mysql/.)

My thoughts exactly, that's what was so frustrating about it. I really see a
lot of potential for PDO. It could still use a little tweaking, such as
support for preparing queries with LIMIT clause parameter support, to name
one. But for the projects I'm envolved in (not too demanding) it suites me
very good. Also the elegancy part and ease of porting you're talking about I
agree with. I really hope the PHP developer community will pick up on
elaborating about PDO and giving it the attention it IMHO deserves.

Cheers.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 96 days, 5:11.]

Non-Intuitive Surnames
http://tobyinkster.co.uk/blog/2007/05/25/non-intuitive-surnames/


.



Relevant Pages

  • Re: PDO support (bit of a rant)
    ... PDO's documentation is truly dreadful -- not just how to install drivers, ... It's a really good interface for database programming though. ... tables and populate them with initial data took quite a bit longer to ...
    (comp.lang.php)
  • Re: PDO support (bit of a rant)
    ... PDO's documentation is truly dreadful -- not just how to install drivers, ... tables and populate them with initial data took quite a bit longer to ... RewriteCond %!-f ...
    (comp.lang.php)
  • Re: Python Database Objects (PDO) 1.2.0 Released
    ... >databases), has now reached 1.2.0! ... I just browsed the documentation, but I don't quite understand what ... advantages PDO offers over using DBAPI directly. ...
    (comp.lang.python)
  • Re: PHP 5.2.1+ Informix is no longer bundled with PHP
    ... Where is there documentation on how to use all the SQL commands for ... I successfully installed the PDO and can connect to ... Gary Quiring ...
    (comp.databases.informix)
  • Re: Database connect / PDO
    ... I've been looking through the documentation for PDO, ... you still need mxODBC. ... I guess you could say its the n-1th abstraction layer. ...
    (comp.lang.python)