Hello,
On 11/05/2002 11:21 PM, Leif K-Brooks wrote:
I'm working on a new site, and I'm wondering whether to use an
abstraction layer or not. I don't have any plans to switch DB system,
but you never know what the future holds. I figure that there's no
reason not to, but are there any down sides? Which abstraction layers
are good?
There is another point on using abstraction layers which is the fact
that since many people use the same API, all can share the eventual
tools and components based on that API.
For instance, I am developing a data persistence layer generator that is
able to generate code and database schemas from a description in XML of
the structure of a set of classes and the relationships that exist
between them.
The generator creates the modelled classes and a database schema to
provide persistent storage for the classes objects. The classes provide
an API to retrieve and store the objects according to your application
as described in the model description in XML. See below for a simple
example.
With this tool you no longer need to put up with the tedious work of
setting databases, write SQL by hand, write code to retrieve and store
the data, etc.. This way you can speedup the development of your
application often by more than an order of magnitude.
The generated code and database schema description (also in XML) is
based on Metabase database abstraction, so anybody using Metabase can
benefit from this tool.
Read more about this here:
http://www.meta-language.net/news-2002-11-01-persistence.html
http://www.phpclasses.org/metabase
--
Regards,
Manuel Lemos
(#) $Id: cms.component,v 1.3 2002/11/06 01:52:52 mlemos Exp $
-->
cms
Content management system component
article
title
text
lead
text
body
text
author
author
creation_date
timestamp
categories
category
articles
author
name
text
articles
article
author
category
name
text
description
text
parent
category
children
category
parent
articles
article
categories
installschema
installschema
getarticle
getobject
article
article
getauthor
getobject
author
author
getcategory
getobject
category
category
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php