cvs: pear /MDB2_Schema/docs xml_schema_documentation.html
| From: | Igor Feghali | Date: | Mon, 25 Sep 2006 17:56:34 +0000 |
| Subject: | cvs: pear /MDB2_Schema/docs xml_schema_documentation.html | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-42228@lists.php.net to get a copy of this message | ||
ifeghali Mon Sep 25 17:56:34 2006 UTC
Modified files:
/pear/MDB2_Schema/docs xml_schema_documentation.html
Log:
- added schema overview data structure section
http://cvs.php.net/viewvc.cgi/pear/MDB2_Schema/docs/xml_schema_documentation.html?r1=1.5&r2=1.6&diff_format=u
Index: pear/MDB2_Schema/docs/xml_schema_documentation.html
diff -u pear/MDB2_Schema/docs/xml_schema_documentation.html:1.5
pear/MDB2_Schema/docs/xml_schema_documentation.html:1.6
--- pear/MDB2_Schema/docs/xml_schema_documentation.html:1.5 Sun Sep 24 04:48:38 2006
+++ pear/MDB2_Schema/docs/xml_schema_documentation.html Mon Sep 25 17:56:34 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.5 2006/09/24 04:48:38 ifeghali Exp $</tt></p>
+<p><b>Version control:</b> <tt>@(#) $Id: xml_schema_documentation.html,v
1.6 2006/09/25 17:56:34 ifeghali Exp $</tt></p>
<h2>Contents</h2>
<ul>
@@ -24,6 +24,13 @@
<li><a href="#3.4.0">variable</a></li>
</ul>
</li>
+ <li><a href="#4.0.0">Schema overview data structure</a>
+ <ul>
+ <li><a href="#4.1.0">Main structure</a></li>
+ <li><a href="#4.2.0">Common elements</a></li>
+ <li><a href="#4.3.0">Legend</a></li>
+ </ul>
+ </li>
</ul>
@@ -108,7 +115,7 @@
</ul>
-<p>Example:</p>
+<h4>Example</h4>
<ul>
<p><tt><table></tt></p>
<ul>
@@ -208,7 +215,7 @@
<p><b>Default:</b> none</p>
</ul>
-<p>Example:</p>
+<h5>Example</h5>
<ul>
<p><tt><field></tt></p>
<ul>
@@ -259,7 +266,7 @@
<p><b>Default:</b> none</p>
</ul>
-<p>Example:</p>
+<h5>Example</h5>
<ul>
<p><tt><index></tt></p>
<ul>
@@ -350,7 +357,8 @@
<h4>sequence <tt>on</tt></h4>
<p>The sequence <tt>on</tt> <tt>table</tt> <tt>field</tt>
section specifies a table field on which the sequence value should be synchronized.</p>
<p>This information is meant to be used only by the database manager class when it is added a
sequence later after the database has been installed for the first time. If the sequence
<tt>on</tt> is specified, the database manager class will override the sequence
<tt>start</tt> value with a value that is higher than the highest value in the specified
field table. Therefore, the specified field table type must be integer.</p>
-<p>Example:</p>
+
+<h4>Example</h4>
<ul>
<p><tt><sequence></tt></p>
<ul>
@@ -373,5 +381,163 @@
<p>For instance, if you have several tables that store user names in text fields with the
same length limit, instead of hard coding the length value in all field definitions, you may use a
variable reference. The parser will replace variable references found in property definitions by
the text values of the respective values passed to the parser.</p>
<p>The parser will issue an error if it find a reference for a variable that is not
defined.</p>
+<!-- SECTION 4 -->
+<h2><a name="4.0.0">Schema overview data structure</a></h2>
+<h3><a name="4.1.0">Main structure</a></h3>
+<ul><p><tt><database></tt></p>
+<ul><p>
+ <tt><name/></tt><br/>
+ <tt><create/>?</tt><br/>
+ <tt><overwrite/>?</tt><br/>
+ <tt><description/>?</tt><br/>
+ <tt><comments/>?</tt><br/>
+ <br/>
+ <tt><table></tt><br/>
+ <ul><p>
+ <tt><name/></tt><br/>
+ <tt><was/></tt><br/>
+ <tt><description/></tt><br/>
+ <tt><comments/></tt><br/>
+ <br/>
+ <tt><declaration></tt><br/>
+ <ul><p>
+ <tt><field></tt><br/>
+ <ul><p>
+ <tt><name/></tt><br/>
+ <tt><was/></tt><br/>
+ <tt><type/></tt><br/>
+ <tt><default/></tt><br/>
+ <tt><notnull/></tt><br/>
+ <tt><autoincrement/></tt><br/>
+ <tt><unsigned/></tt><br/>
+ <tt><description/></tt><br/>
+ <tt><comments/></tt><br/>
+ <tt><length/></tt><br/>
+ </ul></p>
+ <tt></field>+</tt><br/>
+ <tt><index></tt><br/>
+ <ul><p>
+ <tt><name/></tt><br/>
+ <tt><was/>?</tt><br/>
+ <tt><unique/>?</tt><br/>
+ <tt><primary/>?</tt><br/>
+ <tt><field></tt><br/>
+ <ul><p>
+ <tt><name/></tt><br/>
+ <tt><sorting/></tt><br/>
+ </ul></p>
+ <tt></field>+</tt><br/>
+ </ul></p>
+ <tt></index>*</tt><br/>
+ </ul></p>
+ <tt></declaration></tt><br/>
+
+ <tt><initialization></tt><br/>
+ <ul><p>
+ <tt><insert></tt>
+ <ul><p>
+ <tt>{field}+</tt>
+ </ul></p>
+ <tt></insert>*</tt><br/>
+
+ <tt><update></tt><br/>
+ <ul><p>
+ <tt>{field}+</tt><br/>
+ <tt><where></tt><br/>
+ <ul><p>
+ <tt>{expression}</tt><br/>
+ </ul></p>
+ <tt></where>?</tt><br/>
+ </ul></p>
+ <tt></update>*</tt><br/>
+
+ <tt><delete></tt><br/>
+ <ul><p>
+ <tt><where></tt><br/>
+ <ul><p>
+ <tt>{expression}?</tt><br/>
+ </ul></p>
+ <tt></where></tt><br/>
+ </ul></p>
+ <tt></delete>*</tt><br/>
+ </ul></p>
+ <tt></initialization></tt><br/>
+ </p></ul>
+ <tt></table>+</tt><br/>
+
+
+ <tt><sequence></tt><br/>
+ <ul><p>
+ <tt><name/></tt><br/>
+ <tt><was/>?</tt><br/>
+ <tt><start/>?</tt><br/>
+
+ <tt><on></tt><br/>
+ <ul><p>
+ <tt><table/></tt><br/>
+ <tt><field/>+</tt><br/>
+ </ul></p>
+ <tt></on></tt><br/>
+
+ <tt><description/>?</tt><br/>
+ <tt><comments/>?</tt><br/>
+ </ul></p>
+ <tt></sequence>?</tt><br/>
+
+</p></ul>
+<p><tt></database></tt><br/></p>
+</ul>
+
+<h3><a name="4.2.0">Common Elements</a></h3>
+<ul>
+ <li>{field}</li>
+ <ul>
+ <p><tt><field></tt></p>
+ <ul>
+ <p><tt><name/><br/>
+ <value/> or <column/> or {function} or
{expression}</tt></p>
+ </ul>
+ <p><tt></field></tt></p>
+ </ul>
+
+ <li>{function}</li>
+ <ul>
+ <p><tt><function></tt></p>
+ <ul>
+ <p><tt><name/><br/>
+ ( <value/> or <column/> or {function} or
{expression} )+</tt></t>
+ </ul>
+ <p><tt></function></tt></p>
+ </ul>
+
+ <li>{expression}</li>
+ <p>
+ <ul>Some Operators example:
+ <li>NOT, AND, OR, XOR</li>
+ <li>EQUAL, LIKE, LESS THAN, GREATER THAN</li>
+ <li>IS NULL, BETWEEN</li>
+ <li>etc.</li>
+ </ul>
+ </p>
+ <ul>
+ <p><tt><expression></tt></p>
+ <ul>
+ <p><tt><value/> or <column/> or {function} or
{expression}<br/>
+ <operator>OPERATOR</operator><br/>
+ <value/> or <column/> or {function} or
{expression}</tt></p>
+ </ul>
+ <p><tt></expression></tt></p>
+ </ul>
+ </ul>
+
+<h3><a name="4.3.0">Legend</a></h3>
+<ul>
+ <li>{tag} common element</li>
+ <li><tag/> stands for <tag>STRING</tag></li>
+ <li>? Zero or one</li>
+ <li>* Zero or more</li>
+ <li>+ More than one</li>
+</ul>
+
</body>
</html>