RE: [PEAR-DEV] module for XML databases

From: Date: Thu, 07 Nov 2002 15:30:01 +0000
Subject: RE: [PEAR-DEV] module for XML databases
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10552@lists.php.net to get a copy of this message
> From: Markus Wolff [mailto:wolff@21st.de] > Sent: Thursday, November 07, 2002 4:20 PM > To: pear-dev@lists.php.net > Subject: Re: [PEAR-DEV] module for XML databases > > Am Thu, 7 Nov 2002 16:10:45 +0100 schrieb Marc Boeren > <M.Boeren@guidance.nl>: > > > > So i'm +1 for XDB. > > > > I would suggest XMLDB, which is clearer upon first view. > > I second this. But I wonder if XML databases are really _that_ different > from RDBMS in terms of handling/querying data that there is no > possibility to just make a driver class for DB or MDB. +1 > > LDAP is a good example for a non-RDBMS driver class where it makes > perfect sense to use the already familiar PEAR::DB API to query the > directory server. > > I have no experience at all with XML databases, but I wonder if they > don´t work like others, e.g.: > > - Connect to server > - Make a query (in whatever language/format) > - Retrieve result object > - Iterate through results, extracting arrays for each dataset > - Free result > - Close connection > > If XML databases work like that as well, I´d rather like to see this as > a new DB/MDB driver. Well not really ... LDAP is a hierarchal database and therefore they do follow a very different philosophy and you do query them differently. That is why the PEAR DB Ldap driver is not complete. XML databases as far as I know are probably a little more similar to LDAP in that you also have trees, but they also have their own twist which make them useful in very different situations than LDAP. But depending on the needs it might still make sense to have drivers for XML DB's and LDAP especially if you want to leverage your existing code/know how more easily. Regards, Lukas

« previous php.pear.dev (#10552) next »