43 lines
No EOL
1.6 KiB
XML
43 lines
No EOL
1.6 KiB
XML
<?xml version="1.0"?>
|
|
<!DOCTYPE adodb_schema [
|
|
<!ELEMENT schema (table*, sql*)>
|
|
<!ATTLIST schema version CDATA #REQUIRED>
|
|
<!ELEMENT table (descr?, (field+|DROP), constraint*, opt*, index*, data*)>
|
|
<!ATTLIST table name CDATA #REQUIRED platform CDATA #IMPLIED version CDATA #IMPLIED>
|
|
<!ELEMENT field (descr?, (NOTNULL|KEY|PRIMARY)?, (AUTO|AUTOINCREMENT)?, (DEFAULT|DEFDATE|DEFTIMESTAMP)?, NOQUOTE?, UNSIGNED?, constraint*, opt*)>
|
|
<!ATTLIST field name CDATA #REQUIRED type (C|C2|X|X2|B|D|T|L|I|F|N) #REQUIRED size CDATA #IMPLIED opts CDATA #IMPLIED>
|
|
<!ELEMENT data (descr?, row+)>
|
|
<!ATTLIST data platform CDATA #IMPLIED>
|
|
<!ELEMENT row (f+)>
|
|
<!ELEMENT f (#CDATA)>
|
|
<!ATTLIST f name CDATA #IMPLIED>
|
|
<!ELEMENT descr (#CDATA)>
|
|
<!ELEMENT NOTNULL EMPTY>
|
|
<!ELEMENT KEY EMPTY>
|
|
<!ELEMENT PRIMARY EMPTY>
|
|
<!ELEMENT AUTO EMPTY>
|
|
<!ELEMENT AUTOINCREMENT EMPTY>
|
|
<!ELEMENT DEFAULT EMPTY>
|
|
<!ATTLIST DEFAULT value CDATA #REQUIRED>
|
|
<!ELEMENT DEFDATE EMPTY>
|
|
<!ELEMENT DEFTIMESTAMP EMPTY>
|
|
<!ELEMENT NOQUOTE EMPTY>
|
|
<!ELEMENT UNSIGNED EMPTY>
|
|
<!ELEMENT DROP EMPTY>
|
|
<!ELEMENT constraint (#CDATA)>
|
|
<!ATTLIST constraint platform CDATA #IMPLIED>
|
|
<!ELEMENT opt (#CDATA)>
|
|
<!ATTLIST opt platform CDATA #IMPLIED>
|
|
<!ELEMENT index ((col+|DROP), CLUSTERED?, BITMAP?, UNIQUE?, FULLTEXT?, HASH?, descr?)>
|
|
<!ATTLIST index name CDATA #REQUIRED platform CDATA #IMPLIED>
|
|
<!ELEMENT col (#CDATA)>
|
|
<!ELEMENT CLUSTERED EMPTY>
|
|
<!ELEMENT BITMAP EMPTY>
|
|
<!ELEMENT UNIQUE EMPTY>
|
|
<!ELEMENT FULLTEXT EMPTY>
|
|
<!ELEMENT HASH EMPTY>
|
|
<!ELEMENT sql (query+, descr?)>
|
|
<!ATTLIST sql name CDATA #IMPLIED platform CDATA #IMPLIED, key CDATA, prefixmethod (AUTO|MANUAL|NONE)>
|
|
<!ELEMENT query (#CDATA)>
|
|
<!ATTLIST query platform CDATA #IMPLIED>
|
|
]> |