AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

QueryExecution

import "github.com/aws/aws-sdk-go/service/athena"

type QueryExecution struct { Query *string `min:"1" type:"string"` QueryExecutionContext *QueryExecutionContext `type:"structure"` QueryExecutionId *string `type:"string"` ResultConfiguration *ResultConfiguration `type:"structure"` StatementType *string `type:"string" enum:"StatementType"` Statistics *QueryExecutionStatistics `type:"structure"` Status *QueryExecutionStatus `type:"structure"` WorkGroup *string `type:"string"` }

Information about a single instance of a query execution.

Query

Type: *string

The SQL query statements which the query execution ran.

QueryExecutionContext

The database in which the query execution occurs.

QueryExecutionId

Type: *string

The unique identifier for each query execution.

ResultConfiguration

The location in Amazon S3 where query results are stored and the encryption option, if any, used for query results. These are known as "client-side settings". If workgroup settings override client-side settings, then the query uses the location for the query results and the encryption configuration that are specified for the workgroup.

StatementType

Type: *string

The type of query statement that was run. DDL indicates DDL query statements. DML indicates DML (Data Manipulation Language) query statements, such as CREATE TABLE AS SELECT. UTILITY indicates query statements other than DDL and DML, such as SHOW CREATE TABLE, or DESCRIBE <table>.

Statistics

The amount of data scanned during the query execution and the amount of time that it took to execute, and the type of statement that was run.

Status

The completion date, current state, submission time, and state change reason (if applicable) for the query execution.

WorkGroup

Type: *string

The name of the workgroup in which the query ran.

Method

GoString

func (s QueryExecution) GoString() string

GoString returns the string representation

SetQuery

func (s *QueryExecution) SetQuery(v string) *QueryExecution

SetQuery sets the Query field's value.

SetQueryExecutionContext

func (s *QueryExecution) SetQueryExecutionContext(v *QueryExecutionContext) *QueryExecution

SetQueryExecutionContext sets the QueryExecutionContext field's value.

SetQueryExecutionId

func (s *QueryExecution) SetQueryExecutionId(v string) *QueryExecution

SetQueryExecutionId sets the QueryExecutionId field's value.

SetResultConfiguration

func (s *QueryExecution) SetResultConfiguration(v *ResultConfiguration) *QueryExecution

SetResultConfiguration sets the ResultConfiguration field's value.

SetStatementType

func (s *QueryExecution) SetStatementType(v string) *QueryExecution

SetStatementType sets the StatementType field's value.

SetStatistics

func (s *QueryExecution) SetStatistics(v *QueryExecutionStatistics) *QueryExecution

SetStatistics sets the Statistics field's value.

SetStatus

func (s *QueryExecution) SetStatus(v *QueryExecutionStatus) *QueryExecution

SetStatus sets the Status field's value.

SetWorkGroup

func (s *QueryExecution) SetWorkGroup(v string) *QueryExecution

SetWorkGroup sets the WorkGroup field's value.

String

func (s QueryExecution) String() string

String returns the string representation

On this page: