|
|
Login/Register | Contact Us | 1+ 978-528-4660 |
C.2. The Structure of the Project Definition File
Because the project definition file is a standard XML file, you should always start the file with the XML declaration. The root element of the definition file is the project element, so the next line of the definition file should start the project element. The remainder of the definition consists of elements that are children of the project element.
Figure C.1, “Project Definition XML Structure” shows the structure of the project definition file. The indentation indicates the hierarchical parent-child relationships of the elements and an ellipsis (...) shows where an element may appear multiple times.
Figure C.1. Project Definition XML Structure
<project>
<info>
<name>
<description>
<version>
</info>
<security/>
<database>
<schemas>
<schema/>...
</schemas>
<groups>
<group/>...
</groups>
<procedures>
<procedure/>...
<procedure>
<sql>
</procedure>...
</procedures>
<partitions>
<partition/>...
</partitions>
<export>
<tables>
<table>...
</tables>
</export>
</database>
</project>
Table C.1, “Project Definition File Elements and Attributes” provides further detail on the elements, including their relationships (as child or parent) and the allowable attributes for each.
Table C.1. Project Definition File Elements and Attributes
| Element | Child of | Parent of | Attributes |
|---|---|---|---|
| project* | (root element) | security, database | |
| info | project | name, description, version | |
| name* | info | ||
| description* | info | ||
| version* | info | ||
| security | project | enabled={true|false} | |
| database* | project | groups, procedure, partition, snapshot | name={text} |
| schemas* | database | schema | |
| schema* | schemas | path={file-spec}* | |
| groups | database | group | |
| group | groups | name={text}* | |
| procedures | database | procedure | |
| procedure | procedures | sql | class={text}* |
| sql | procedure | joinorder={table-name[,...]} | |
| partitions | database | partition | |
| partition | partitions | table={text}* | |
| export | database | tables | groups={group-name[,..]} |
| tables | export | table | |
| table | tables | name={text}* | |
*Required | |||
copyright 2012 VoltDB, Inc.
- Printer-friendly version
- Login or register to post comments
