lib

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountID

func AccountID() string

AccountID returns the current AWS Account ID

func CleanCache added in v0.0.2

func CleanCache(fileName string)

CleanCache deletes any tmp files used

func OutputData added in v0.0.2

func OutputData(outputFormat string, query string, file *os.File) error

OutputData formats json data as the desired output format and sends the results to stdout

func Region

func Region() string

Region returns the current region

Types

type Format added in v0.0.2

type Format int

Format is an enumeration of available query output formats ENUM( json, csv, table )

type Query

type Query struct {
	OutputBucket string
	OutputPrefix string
	Database     string
	SQL          string
	Format       string
	JMESPath     string
	Statistics   bool
}

Query ...

func (*Query) Execute

func (q *Query) Execute() (*os.File, error)

Execute a SQL query against Athena

func (*Query) ExecuteToStdout

func (q *Query) ExecuteToStdout() error

ExecuteToStdout executes the query and returns the results to stdout

Jump to

Keyboard shortcuts

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