项目作者: theflyinggriffin

项目描述 :
A scripting tool to extract CSV files from MarkLogic TDEs
高级语言: Python
项目地址: git://github.com/theflyinggriffin/corb-row-exporter.git
创建时间: 2020-10-27T01:29:49Z
项目社区:https://github.com/theflyinggriffin/corb-row-exporter

开源协议:Apache License 2.0

下载


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:

  • Java 8 installed
  • Python 3 installed

Get the code from this repository

  1. git clone https://github.com/theflyinggriffin/ml-csv-extractor.git
  2. 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:

  1. python ml-csv.py extract table example table1

Or to extract all tables from the schema example, run the command:

  1. python ml-csv.py extract schema example

For more options, use -h or --help, for example:

  1. python ml-csv.py extract --help

or

  1. 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.