theflyinggriffin / corb-row-exporter

A scripting tool to extract CSV files from MarkLogic TDEs
Apache License 2.0
1 stars 0 forks source link
csv marklogic

MarkLogic CSV Extractor

Introduction

The MarkLogic CSV Extractor is a wrapper around Corb2 that will automate the discovery and extraction of tables built from TDEs.

Installation

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:

Usage

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

Limitations

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.