Login   Register  
PHP Classes
elePHPant
Icontem

File: schema.xml

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Richard Heyes  >  XML Db Schema Interpreter  >  schema.xml  >  Download  
File: schema.xml
Role: ???
Content type: text/plain
Description: An example schema
Class: XML Db Schema Interpreter
Interprets database schemas written in XML
Author: By
Last change:
Date: 2000-08-13 09:34
Size: 624 bytes
 

Contents

Class file image Download
<?xml version="1.0"?>

<database name="xml_test" if_not_exists="yes">

        <table name="xmltest" if_not_exists="yes" options="TYPE=ISAM">
                <field name="p_key" type="int" size="10" null="no" default="0" extra="AUTO_INCREMENT" />
                <field name="name" type="char" size="10" null="no" />
                <field name="surname" type="char" size="10" null="no" />
                <key type="primary" field="p_key" />
                <key type="unique" field="surname" name="idx_surname" />
                <key type="index" field="name" name="idx_name" />
        </table>

</database>