pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Hammond <drew@waugh.econ.queensu.ca>
To: PostgreSQL-PHP list <pgsql-php@postgresql.org>
Subject: A valuable addition to PHP...
Date: Thu, 29 Mar 2001 17:16:54 -0500
Message-ID: <20010329171654.A12635@waugh.econ.queensu.ca> (raw)
In-Reply-To: <3ABFADEE.6000802@greatbridge.com>
References: <3ABFADEE.6000802@greatbridge.com>

As an unabashed hacker, I'd like to point out one addition that I
personally would really appreciate and find useful.  Perl (and hence
mod-perl and/or mason based stuff) has DBI and zope offers their SQL
objects.  Sadly, PHP's database stuff, while functional, is a fugly
mess. A layer of abstraction gives at least the illusion of database
independance.  And while I certainly can (and have) written n'th tier 
layers that encapsulate all the pg_* php function calls, I personally
don't _like_ having to do that kind of stuff.  And given the choice,
I always go with a tool that will do it for me.

Of course yet-another-database-interface-layer while certainly a good
and usefull piece of engineering wouldn't be particularly new and
innovative.  What _would_ be new and innovate, and maybe even impressive
is a database interface layer that provides not just the usual database 
independant connect / query / result stuff but an organized, database
independant way of accessing metadata.  Writing SQL queries that derive
metadata by futzing around with the pg_* tables works but is totally
non-portable.  What I would really like to see is a database interface
layer that encapsulates all that nasty mess.  Metadata and other
introspective stuff is a glaring ommission from SQL.

Well, you _did_ ask... :)




view thread (5+ messages)  latest in thread

Message-ID: <20010329171654.A12635@waugh.econ.queensu.ca>
Permalink:  ../20010329171654.A12635@waugh.econ.queensu.ca/
Also on:    postgresql.org/message-id/20010329171654.A12635@waugh.econ.queensu.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-php@postgresql.org
  Cc: drew@waugh.econ.queensu.ca
  Subject: Re: A valuable addition to PHP...
  In-Reply-To: <20010329171654.A12635@waugh.econ.queensu.ca>
  References: <3ABFADEE.6000802@greatbridge.com> <20010329171654.A12635@waugh.econ.queensu.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox