Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joeygibson/verticat
A tool to count rows, take rows from, and combine Vertica native binary files.
https://github.com/joeygibson/verticat
database vertica
Last synced: 3 months ago
JSON representation
A tool to count rows, take rows from, and combine Vertica native binary files.
- Host: GitHub
- URL: https://github.com/joeygibson/verticat
- Owner: joeygibson
- License: mit
- Created: 2021-01-22T21:03:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-24T03:19:12.000Z (over 2 years ago)
- Last Synced: 2024-08-03T23:22:45.661Z (6 months ago)
- Topics: database, vertica
- Language: Go
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-vertica - verticat - Count the rows, and take rows from native binary files. (Tools)
README
# Verticat
![Build Status](https://github.com/joeygibson/verticat/workflows/build/badge.svg)
![Release Status](https://github.com/joeygibson/verticat/workflows/release/badge.svg)A tool to count the rows, and take rows
from [Vertica native binary files](https://www.vertica.com/docs/9.3.x/HTML/Content/Authoring/AdministratorsGuide/BinaryFilesAppendix/CreatingNativeBinaryFormatFiles.htm)
.## Usage
```bash
Usage: verticat [-cfHv] [-h value] [-o value] [-t value] [file...]
-c, --count count rows
-f, --force force overwrite of output file
-h, --head=value take the first n rows
-H, --help show help
-o, --output=value
write head/tail results to this file
-t, --tail=value take the last n rows
-v, --version show version
```Running with `--count` will print out the number of data rows in the file(s). The header does not count as a row.
Running with `--head` or `--tail` will copy the first `n` rows, or the last `n` rows, respectively, to the output. When
either is used with multiple files, `n` rows will be taken from each file, and written to the output.If `--output` is not specified, `stdout` is used. Be careful with this, since binary data echoed to the console may be
undesirable.If combining multiple files with `--head`, `--tail`, or no options, they must all share the same column layout.
If no options are given, `verticat` acts like the standard `cat` program, reading from `stdin` if no files are given. Since
Vertica native files start with a metadata header, if you want to cat multiple files together, specify them as arguments
to `verticat` itself.