dynamo

command module
v0.0.0-...-cdf8cf0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2021 License: MIT Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

dynamo

dynamo is a dead-simple CLI for AWS DynamoDB.

Demo video of usage

Installation

  • Mac: brew install glassechidna/taps/dynamo
  • Windows: scoop bucket add glassechidna https://github.com/glassechidna/scoop-bucket.git; scoop install dynamo
  • Otherwise get the latest build from the Releases tab.

Usage

dynamo [-n COUNT] [--dax CLUSTER] [table-name [partition key value [sort key value-or-expression]]]
  • If no table name is specified, all tables are listed.
  • If only a table name is specified, every row will be scanned.
  • If a table name and partition key are provided, either:
    • That item will be returned (for single-key schemas)
    • All matching items will be returned (for partition+sort key schemas)
  • If a table name, partition key and sort key are provided, only the matching item will be returned.

In place of a constant sort key, you can also type:

  • > someval - all items with sort key value greater than someval
  • >= someval - as above, but "greater than or equal to"
  • <= someval - as above, but "less than or equal to"
  • < someval - as above, but "less than"
  • between val1 val2 - all items with sort keys between val1 and val2
  • someval* - all items with sort keys that begin with someval

By default, only 10 items will be returned -- this is to avoid accidentally downloading an entire table! This can be controlled with the -n 30 flag. Passing -n 0 disables the limit.

DynamoDB Accelerator (DAX) clusters are also supported. Pass --dax cluster-name or --dax cluster-address:port to take advantage of this.

Finally, output is pretty-printed and colourised when executed directly. If executed as part of a script (as determined by isatty), output will be one-item-per-line in JSON Lines format.

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
⌂ 换网址