Hi guys,

The code for the database code generation has been reorganised under the
/example directory. You should use MySqlGenerateMapBuilderTask instead
of NewGenerateMapBuilderTask.

I have also added experimental code for generating a DatabaseMap object
from a XML description file. The format is close to the one Jon has
proposed (under /conf) but with modifications to handle the new Peers
features (IDBroker especially). This code is experimental in the way
that the XML DTD is not finalized. We may use other well known database
description DTD. Anyway, I did not take the time to search if there are
standard DTDs dealing with relational database structure.

I have also added a sample class that builds a postgreSQL sql script
from a DatabaseMap. This script may be used to create the tables in
PostgreSQL. My mapping is different from the mapping that is currently
there as I map String to the SQL 'text' type. I have not tested it yet.

If you want to play with this stuff, you can use the
XmlGeneratePostgresSchemaTask class as a main application, with two
parameters. The first is the XML description (TurbineDBSchema.xml) and
the second is your output .sql file.

Regis


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to