Re: storage layer Re: [PEAR-DEV] Package proposal
| From: | Ian P. Christian | Date: | Thu, 30 Jun 2005 15:18:38 +0000 |
| Subject: | Re: storage layer Re: [PEAR-DEV] Package proposal | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-38397@lists.php.net to get a copy of this message | ||
On Thursday 30 June 2005 14:16, Lukas Smith wrote:
> well these issues remind me of the challenges we faced in LiveUser to
> some extend. although the needs here are much simpler than in liveuser.
> i have designed a storage layer for liveuser_admin [1][2] that in theory
> should work with other storage layers, however currently its only
> implemented for sql rdbms.
What's the thoughts on a package along the lines of 'Storage_Simple'. A
persistant storage container with multiple backends. It should not handle
relational data, but could handle XML, CSV, raw PHP data (serialized
probably), berkley db... whatever.
I've put all of about 60 seconds thought into this:
$options = array('uri' => 'xml:///root/moo.xml');
$storage = new Storage_Simple($options);
$storage->get('field');
$storage->set('field', 'value');
--
Ian P. Christian ~ http://pookey.co.uk
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]