Re: Re: extending the mdb schema format
| From: | Alan Knowles | Date: | Tue, 14 Jun 2005 16:20:24 +0000 |
| Subject: | Re: Re: extending the mdb schema format | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-38119@lists.php.net to get a copy of this message | ||
Just wondering what the dislike of attributes is all about?
I would have tended to use attributes for single value items, and child
tags for nesting/multivalue data..
or is it just easier to parse??
<table name="foo">
<declaration>
<field name="bar" type="integer">
<default>
<autoincrement start="1" increment="1">
</default>
</field>
</declaration>
</table>
Regards
Alan
> <table>
> <name>foo</name>
> <declaration>
> <field>
> <name>bar</name>
> <type>integer</type>
> <default>
> <autoincrement>
> <start>1</start>
> <increment>1</increment>
> </autoincrement>
> </default>
> </field>
> </declaration>
> </table>
>
> This way, if a RDBMS does not have autoincrement fields, it may behave
> like Postgresql: create a sequence behind the scenes, and assign
> sequence::next_val to the field's default value.
>
--
Alan Knowles <alan@akbkhome.com>