Loading...

ddlutils-user@db.apache.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

Export data/schema from only certain tables ?? James Yu Tue Jan 20 20:00:46 2009

Hi all,

In writeDataToFile's document, I don't see any nested elements to specify
which tables the data should be dumped from.
Is there a way (and how) to export data from just certain tables ??

Besides, I am not sure if the previous help requesting email got through.
Let me post it again.

Instead of exporting all tables, I tried to just export certain tables out
of a DB.
I read through DdlUtils' web page and still don't have any clue on how to
use "TableSpecificParameter".

Followings are the sneppits of my XML and the result of execution:
Maybe I didn't understand the material right, please correct me.

     17             <writeSchemaToFile outputFile="db-schema.xml">
     18                 <tableSpecificParameter table="foak_user_profile"/>
     19             </writeSchemaToFile>
BUILD FAILED
[blah] writeSchemaToFile doesn't support the nested "tableSpecificParameter"
element.

     17             <writeSchemaToFile outputFile="db-schema.xml">
     18                 <parameter table="user_profile"/>
     19             </writeSchemaToFile>
BUILD FAILED
[blah] writeSchemaToFile doesn't support the nested "parameter" element

-- 
This is a UTF-8 formatted mail
-----------------------------------------------
James C.-C.Yu
+886988713275