dynamo2csv

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2020 License: MIT Imports: 13 Imported by: 0

README

dynamo2csv

Export DynamoDB table to CSV

Installation

go get -u github.com/laqiiz/dynamo2csv

Usage

All Data

./dynamo2csv -t <TableName> > out.csv

Filter Expression

./dynamo2csv -t <TableName> \
  -filter-expression 'contains(#ts, :s)' \
  -expression-attribute-values '{":s":{"S":"15:00:00Z"}}' \
  -expression-attribute-names '{"#ts":"timestamp"}' > out.csv

Options

$ dynamo2csv --help
Usage of ./dynamo2csv:
  -c, --columns string                       DynamoDB Column names order for using csv output
      --expression-attribute-names string    Attribute names
      --expression-attribute-values string   Attribute values
      --filter-expression string             Filter Expression
      --profile string                       AWS Profile Name
  -t, --table string                         DynamoDB Table name that is export target

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL