1.1

Table Of Contents
</taskdef>
<databaseToDdl verbosity="debug">
<!--
<database url="jdbc:sqlfire://localhost:1527"
driverClassName="com.vmware.sqlfire.jdbc.ClientDriver"
username="app"
password="app"/>
-->
<database url="jdbc:mysql://camus.vmware.com/test"
driverClassName="com.mysql.jdbc.Driver" />
<writeSchemaToFile outputFile="db-schema1.xml" failonerror="false" />
<!-- Comment line below if the source DB is too big -->
<writeDataToFile outputFile="data.xml"/>
</databaseToDdl>
</target>
<!-- This will create the tables, etc in SQLFire.
If your table names or column names contain embedded spaces, set
usedelimitedsqlidentifiers to true.
-->
<target name="createDBFromXML" description="Create the DB tables ..">
<taskdef classname="org.apache.ddlutils.task.DdlToDatabaseTask"
name="ddlToDatabase"
classpathref="runtime-classpath"/>
<ddlToDatabase usedelimitedsqlidentifiers="false">
<database driverclassname="com.vmware.sqlfire.jdbc.ClientDriver"
url="jdbc:sqlfire://localhost:1527"
username="app"
password="app"/>
<fileset dir=".">
<include name="db-schema1.xml"/>
</fileset>
<!-- <createdatabase failonerror="false"/> -->
<writeschematodatabase alterdatabase="true"
failonerror="false"/>
</ddlToDatabase>
</target>
<!-- Extract DDL for a schema and write this out as a 'SQL' script file
(db-schema1.sql).
EDIT THIS FILE TO CHANGE THE TABLES TO BE CUSTOM PARTITIONED,
REPLICATED, PERSISTENT, ETC
Then, execute the SQL script using 'sqlf' or your favorite tool (like
SQuirrel)
-->
<target name="writeDDLToSQL" description="Dumps the database structure">
<taskdef name="databaseToDdl"
classname="org.apache.ddlutils.task.DatabaseToDdlTask">
<classpath refid="runtime-classpath"/>
</taskdef>
<databaseToDdl verbosity="debug">
101
Exporting and Importing Data with vFabric SQLFire