Skip to content

Commit

Permalink
Merge pull request #36 from project-tsurugi/docs-tgdump-readme
Browse files Browse the repository at this point in the history
Revise README for tgdump project.
  • Loading branch information
akirakw authored Dec 27, 2023
2 parents 5fd30a6 + d4da202 commit 38c8a21
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Available Tools

* [tgsql](./modules/tgsql/cli) - Text based SQL client program.
* [tgdump](./modules/tgdump/cli) - Table Dump Tool.
* [tgdump](./modules/tgdump) - Table Dump Tool.

## Requirements

Expand Down
28 changes: 27 additions & 1 deletion modules/tgdump/cli/README.md → modules/tgdump/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,33 @@

Tsurugi Table Dump Tool extracts the contents of table data and saves them on files.

## command specification
## Build and Install

Execute the below command in this directory (`/modules/tgdump`):

```sh
../../gradlew assemble
```

This will create the following distribution archives:

* `cli/build/distributions/tgdump-<version>.zip`
* `cli/build/distributions/tgdump-<version>.tar.gz`
* `cli/build/distributions/tgdump-<version>-shadow.zip`
* `cli/build/distributions/tgdump-<version>-shadow.tar.gz`

Each of the archives above contains the following contents:

* `tgdump-<version>(-shadow)/bin/tgdump`
* A script for executing the command
* Additionally, `tgdump.bat` is included for Windows users
* `tgdump-<version>(-shadow)/lib/*.jar`
* Java libraries used by the command
* For the -shadow archives, the above is packaged into a single "Uber JAR" file

Deploy the files mentioned above, and the tgdump command will be available for use.

## Command specification

```sh
tgdump <table-name> [<table-name> [...]] --to </path/to/destination-dir> --connection <endpoint-uri> ...
Expand Down

0 comments on commit 38c8a21

Please sign in to comment.