Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bluecolor/cargo

cross db data transfer
https://github.com/bluecolor/cargo

java jdbc scala

Last synced: 6 days ago
JSON representation

cross db data transfer

Awesome Lists containing this project

README

        

# Cargo

- Cross database data transfer tool

## Requirements
- java 1.8^

## Build
* `sbt assembly`

## Make dist
* `./make-dist.sh` copies the executables to `dist` folder

## Installation
* just copy the `dist` folder
* make sure you have `java`

## Running
* go to dist folder and run `./cargo -h` for command line options
* You can use `app.cfg` for common options see `app.cfg.template`

```
usage: cargo
-q,--quiet silent logs
-cf,--config path to configurationfile eg. /home/name/app.cfg or app.cfg
-bs,--batch-size insert batch size
-c,--create create target table
-co,--create-options create table options
-d,--truncate truncate target table
-fs,--fetch-size select fetch size
-h,--help print help
-q,--quiet silent logs
-s,--source-url source jdbc url
-sp,--source-password source connection password
-st,--source-table source table
-su,--source-username source connection username
-t,--target-url target jdbc url
-tp,--target-password target connection password
-tt,--target-table target table
-tx,--target-partition target partition to insert
-tu,--target-username target connection username
-co,--create-options create table options
```