cvs: pear /MDB2_Schema/docs xml_schema_documentation.html
| From: | Lukas Smith | Date: | Tue, 21 Feb 2006 21:57:26 +0000 |
| Subject: | cvs: pear /MDB2_Schema/docs xml_schema_documentation.html | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-38472@lists.php.net to get a copy of this message | ||
lsmith Tue Feb 21 21:57:26 2006 UTC
Modified files:
/pear/MDB2_Schema/docs xml_schema_documentation.html
Log:
- added autoincrement and primary
http://cvs.php.net/viewcvs.cgi/pear/MDB2_Schema/docs/xml_schema_documentation.html?r1=1.1&r2=1.2&diff_format=u
Index: pear/MDB2_Schema/docs/xml_schema_documentation.html
diff -u pear/MDB2_Schema/docs/xml_schema_documentation.html:1.1
pear/MDB2_Schema/docs/xml_schema_documentation.html:1.2
--- pear/MDB2_Schema/docs/xml_schema_documentation.html:1.1 Sun Apr 17 12:46:12 2005
+++ pear/MDB2_Schema/docs/xml_schema_documentation.html Tue Feb 21 21:57:26 2006
@@ -5,7 +5,7 @@
<body>
<center><h1>MDB2 XML Schema documentation</h1></center>
<p><b>Author:</b> Manuel Lemos (<a href="mailto:mlemos@acm.org">mlemos@acm.org</a>)</p>
-<p><b>Version control:</b> <tt>@(#) $Id: xml_schema_documentation.html,v
1.1 2005/04/17 12:46:12 lsmith Exp $</tt></p>
+<p><b>Version control:</b> <tt>@(#) $Id: xml_schema_documentation.html,v
1.2 2006/02/21 21:57:26 lsmith Exp $</tt></p>
<h2>Contents</h2>
<li><a href="#218.2.0">Introduction to XML</a></li>
<li><a href="#218.2.1">Schema description format and XML</a></li>
@@ -153,8 +153,11 @@
<p><li><tt>notnull</tt></li></p>
<p>Boolean flag property that specifies whether the table field should be created with the
constraint <tt>NOT NULL</tt>. As it suggests, this implies that it is not allowed to
set this field value with <tt>NULL</tt>. The parser does not allow that an index is
declared on a field that is not declared with the <tt>notnull</tt> flag
property.</p>
<p><b>Default:</b> <tt>0</tt></p>
+<p><li><tt>autoincrement</tt></li></p>
+<p>Boolean flag property that specifies whether the field should be an auto incrementing
integer field with a primary key. Note that some <i>DBMS</i> do not support unsigned
integer fields. In such case the <i>DBMS</i> driver will ignore this property but it
issues a warning.</p>
+<p><b>Default:</b> <tt>0</tt></p>
<p><li><tt>unsigned</tt></li></p>
-<p>Boolean flag property that specifies whether an integer field should be declared as
unsigned integer. Note that some <i>DBMS</i> do not support unsigned integer fields.
In such case the <i>DBMS</i> driver will ignore this property but it issues a
warning.</p>
+<p>Boolean flag property that specifies whether an integer field should be declared as
unsigned integer. Note that some <i>DBMS</i> do not support auto increment natively in
which case this is emulated with a trigger that updates a sequence.</p>
<p><b>Default:</b> <tt>0</tt></p>
<p><li><tt>length</tt></li></p>
<p>Unsigned integer property that specifies the length of a text. If this property is
specified the text field may not have a longer length. Text values shorter than the length are not
padded. If this property is not specified the length limit is determined by the
<i>DBMS</i>.</p>
@@ -192,6 +195,9 @@
<p><li><tt>unique</tt></li></p>
<p>Boolean flag property that specifies whether the combination of the values of the index
fields on each row of the table should unique.</p>
<p><b>Default:</b> <tt>0</tt></p>
+<p><li><tt>primary</tt></li></p>
+<p>Boolean flag property that specifies whether the combination of the values of the index
fields on each row of the table should be a primary key.</p>
+<p><b>Default:</b> <tt>0</tt></p>
</ul>
<h4><a name="234.3.5"><li>index
<tt>field</tt></li></a></h4>
<p><tt>field</tt> is a section that is part of the table index declaration. It
should be used once per each field on which the index should be created.</p>