Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultWaitInterval is a default value of wait interval. DefaultWaitInterval = 1000 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CanceledError ¶
CanceledError represents an error that a query execution been canceled.
func (*CanceledError) Error ¶
func (e *CanceledError) Error() string
func (*CanceledError) String ¶
func (e *CanceledError) String() string
type Query ¶
type Query struct { *QueryConfig *Result // contains filtered or unexported fields }
Query represents a query to be executed. Query is NOT goroutine-safe so must be used in a single goroutine.
func NewQuery ¶
func NewQuery(client athenaiface.AthenaAPI, cfg *QueryConfig, query string) *Query
NewQuery creates a new Query struct. `query` string must be a single SQL statement rather than multiple ones joined by semicolons.
func NewQueryFromQx ¶
func NewQueryFromQx(client athenaiface.AthenaAPI, cfg *QueryConfig, qx *athena.QueryExecution) *Query
NewQueryFromQx creates a new Query struct from information about a query execution.
func (*Query) GetResults ¶
GetResults gets the results of the query execution.
type QueryConfig ¶
type QueryConfig struct { Database string Location string Encrypt string KMS string // Required only if Encrypt = (SSE_KMS|CSE_KMS) }
QueryConfig is configurations for query executions.
Click to show internal directories.
Click to hide internal directories.