PCTDumpData - niandy/pct GitHub Wiki

PCTDumpData task -- <pct:data_dump />

Description

Dumps data from a database to a directory

Parameters

Attribute Description Type Requirement Default value
destDir Destination directory to dump data to File Required No default value
tables Comma separated list of tables to dump String Optional Blank means ALL
encoding Set encoding to be used to dump data String Optional If undefined or empty, -cpstream will be used

PCTDumpData inherits attributes from PCT and PCTRun. However, PCTDumpData must have one and only one PCTConnection.

Parameters as nested elements

None

Examples

<PCTDumpData destDir="datas" dlcHome="${env.DLC}">
  <PCTConnection dbName="test" singleUser="true" />
</PCTDumpData>

Connects in single-user mode to test.db and dumps each table's data into datas directory

<PCTDumpData destDir="datas" tables="Tab1,Tab2" dlcHome="${env.DLC}">
  <PCTConnection dbName="test" singleUser="true" />
</PCTDumpData>

Same as previous, but dumps only Tab1 and Tab2