Please note: this project is inactive since early 2006

 
2.5.2 Model

We already know that an xml-model holds one and only one model; <model> is, hence, the root element of the model.

The <model> element has the following attributes:

<model 
    name        = ''             -- unique per model set
    packageName = ''             -- generate classes into, and import from, this package
    adaptorName = ( MySQL | Oracle | Postgresql | SQLite ) : Postgresql    -- a supported database adaptor
    comment = ''                 -- a comment
    connectionDictionary = "{}"  -- string representation of a python dictionary
>

All these attributes are described in section 2.3.1.

The connection dictionary should be a valid python expression for dictionaries; when other database adaptors come up for other database, they will be required to accept the very same set of required keys, namely host, database, user, and password.

Comments are welcome: Sebastien Bigaret / Modeling Home Page
Hosted by:SourceForge.net Logo