The MarkLogic CSV Extractor is a wrapper around Corb2 that will automate the discovery and extraction of tables built from TDEs.
Prerequisites:
Get the code from this repository
git clone https://github.com/theflyinggriffin/ml-csv-extractor.git
cd ml-csv-extractor
Download the Corb2 and XCC jar files. The currently supported version are:
To extract data from example.table1
, run the command:
python ml-csv.py extract table example table1
Or to extract all tables from the schema example
, run the command:
python ml-csv.py extract schema example
For more options, use -h
or --help
, for example:
python ml-csv.py extract --help
or
python ml-csv.py extract table --help
The MarkLogic CSV Extractor currently only works on Linux based systems due to the difference in how Java expects the classpath parameter to be passed.