-
Notifications
You must be signed in to change notification settings - Fork 0
Db Unit Dump Tool
Roman Stumm edited this page Mar 13, 2015
·
1 revision
Invoke DBUnit to create a database dump in xml or excel format.
You can use the invocation "dbDump" from within the dbmigrate tool's xml configuration (see xml script features).
java com.agimatec.database.DbUnitDumpTool {driver} {url} {user} {password} [{outputDataFile}](-f)
Parameters in required sequence:
- driver = Jdbc Driver class name
- url = Jdbc Connect url
- user = database user
- password = database password
- -f output filename (default = data.xml)
The suffix of the output filename determines the output format (refer to the classes of DBUnit):
**suffix** | **format** |
.xml | !FlatXmlDataSet |
.xxml | !XmlDataSet |
.xls | !XslDataSet |
java com.agimatec.database.DbUnitDumpTool org.postgresql.Driver jdbc:postgresql://localhost:5432/testdb admin password -f testdb.xml