Documentation ¶
Index ¶
- func AccountID() string
- func CleanCache(fileName string)
- func Partition(daysback int, databaseName, tableName, tmplate string, partitionsMap []string)
- func Region() string
- func RenderAsCSV(i interface{}) error
- func RenderAsJSON(i interface{}) error
- func RenderAsTable(i interface{}) error
- func RenderHistoryResults(h []HistoricalExecution, outputFormat string) error
- func RenderQueryResults(outputFormat string, query string, file *os.File) error
- type Format
- type HistoricalExecution
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanCache ¶ added in v0.0.2
func CleanCache(fileName string)
CleanCache deletes any tmp files used
func RenderAsCSV ¶ added in v0.0.8
func RenderAsCSV(i interface{}) error
RenderAsCSV will render an interfact to table
func RenderAsJSON ¶ added in v0.0.8
func RenderAsJSON(i interface{}) error
RenderAsJSON will render an interface as json
func RenderAsTable ¶ added in v0.0.8
func RenderAsTable(i interface{}) error
RenderAsTable will render an interfact to table.
func RenderHistoryResults ¶ added in v0.0.8
func RenderHistoryResults(h []HistoricalExecution, outputFormat string) error
RenderHistoryResults ..
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 HistoricalExecution ¶ added in v0.0.8
type HistoricalExecution struct { Query string Catalog string Database string QueryExecutionID string OutputLocation string State string WorkGroup string TotalExecutionTimeInMillis int64 DataScannedInBytes int64 Cost float64 SubmissionDateTime time.Time }
HistoricalExecution ..
func ListHistory ¶ added in v0.0.8
func ListHistory(maxResults int, historyCmdWorkgroup string) (h []HistoricalExecution, err error)
ListHistory returns query results per workgroup
type Query ¶
type Query struct { OutputBucket string OutputPrefix string Database string SQL string Format string JMESPath string Statistics bool }
Query ...
func (*Query) ExecuteToStdout ¶
ExecuteToStdout executes the query and returns the results to stdout
Click to show internal directories.
Click to hide internal directories.