Proposal: DB_Structure
| From: | Lukas Smith | Date: | Wed, 08 Oct 2003 10:00:09 +0000 |
| Subject: | Proposal: DB_Structure | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-22467@lists.php.net to get a copy of this message | ||
Hi,
well while working on DB_Schema Wolfram suggested that it might be a
good idea to have a set of classes as DB_Structure which would allow
building an object tree of a given schema.
Briefly the concept once more:
DB_Schema has readers and writers. Readers read any supported format and
build up a DB_Structure object tree which writers can then write to any
supported format.
I already posted some code the other day but here is code that actually
already sort of works.
www.backendmedia.com/DB_Structure/DB_Structure.zip
A known issue that this stage is that the code to determine the state
('add', 'remove' etc) is b0rked by design :-)
Still need to find a good solution.
Also it is also obviously lacking validation code in a lot of places.
Regards,
Lukas Smith
smith@backendmedia.com
_______________________________
BackendMedia
www.backendmedia.com
berlin@backendmedia.com
Linn Zwoch Smith GbR
Pariser Str. 44
D-10707 Berlin
Tel +49 30 83 22 50 00
Fax +49 30 83 22 50 07