redashman

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2017 License: MIT Imports: 1 Imported by: 0

README

redashman

redashman is a query management tool for Redash

Installation

$ go get -u github.com/ariarijp/redashman

Usage

$ export REDASH_URL=http://localhost:5000
$ export REDASH_API_KEY=YOUR_API_KEY
$ 
$ # List queries
$ redashman query list 100 --url $REDASH_URL --api-key $REDASH_API_KEY
$ 
$ # Show a query
$ redashman query show 1 --url $REDASH_URL --api-key $REDASH_API_KEY
$ 
$ # Create a new query with text from a file
$ echo "SELECT NOW();" > new_query.sql
$ redashman query create new_query.sql --url $REDASH_URL --api-key $REDASH_API_KEY
$ 
$ # Modify a query with text from a file
$ echo "SELECT NOW(), CURDATE();" > modified_query.sql
$ redashman query modify 1 modified_query.sql --url $REDASH_URL --api-key $REDASH_API_KEY
$ 
$ # Fork a query from an existing one
$ redashman query fork 1 --url $REDASH_URL --api-key $REDASH_API_KEY
$ 
$ # Archive a query
$ redashman query archive 1 --url $REDASH_URL --api-key $REDASH_API_KEY

License

MIT

Author

ariarijp

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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