rdsdata

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 6 Imported by: 7

Documentation

Overview

Package rdsdata provides the client and types for making API requests to AWS RDS DataService.

Amazon RDS provides an HTTP endpoint to run SQL statements on an Amazon Aurora Serverless DB cluster. To run these statements, you work with the Data Service API.

For more information about the Data Service API, see Using the Data API for Aurora Serverless (https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/data-api.html) in the Amazon Aurora User Guide.

See https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01 for more information on this service.

See rdsdata package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/rdsdata/

Using the Client

To use AWS RDS DataService with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the AWS RDS DataService client for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/rdsdata/#New

Index

Constants

View Source
const (
	ServiceName = "AWS RDS DataService" // Service's name
	ServiceID   = "RDSData"             // Service's identifier
	EndpointsID = "rds-data"            // Service's Endpoint identifier
)
View Source
const (

	// ErrCodeBadRequestException for service response error code
	// "BadRequestException".
	//
	// There is an error in the call or in a SQL statement.
	ErrCodeBadRequestException = "BadRequestException"

	// ErrCodeForbiddenException for service response error code
	// "ForbiddenException".
	//
	// There are insufficient privileges to make the call.
	ErrCodeForbiddenException = "ForbiddenException"

	// ErrCodeInternalServerErrorException for service response error code
	// "InternalServerErrorException".
	//
	// An internal error occurred.
	ErrCodeInternalServerErrorException = "InternalServerErrorException"

	// ErrCodeNotFoundException for service response error code
	// "NotFoundException".
	//
	// The resourceArn, secretArn, or transactionId value can't be found.
	ErrCodeNotFoundException = "NotFoundException"

	// ErrCodeServiceUnavailableError for service response error code
	// "ServiceUnavailableError".
	//
	// The service specified by the resourceArn parameter is not available.
	ErrCodeServiceUnavailableError = "ServiceUnavailableError"

	// ErrCodeStatementTimeoutException for service response error code
	// "StatementTimeoutException".
	//
	// The execution of the SQL statement timed out.
	ErrCodeStatementTimeoutException = "StatementTimeoutException"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchExecuteStatementInput added in v0.10.0

type BatchExecuteStatementInput struct {
	Database *string `locationName:"database" type:"string"`

	ParameterSets [][]SqlParameter `locationName:"parameterSets" type:"list"`

	// ResourceArn is a required field
	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`

	Schema *string `locationName:"schema" type:"string"`

	// SecretArn is a required field
	SecretArn *string `locationName:"secretArn" type:"string" required:"true"`

	// Sql is a required field
	Sql *string `locationName:"sql" type:"string" required:"true"`

	TransactionId *string `locationName:"transactionId" type:"string"`
	// contains filtered or unexported fields
}

The request parameters represent the input of a SQL statement over an array of data. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BatchExecuteStatementRequest

func (BatchExecuteStatementInput) MarshalFields added in v0.10.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (BatchExecuteStatementInput) String added in v0.10.0

String returns the string representation

func (*BatchExecuteStatementInput) Validate added in v0.10.0

func (s *BatchExecuteStatementInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BatchExecuteStatementOutput added in v0.10.0

type BatchExecuteStatementOutput struct {
	UpdateResults []UpdateResult `locationName:"updateResults" type:"list"`
	// contains filtered or unexported fields
}

The response elements represent the output of a SQL statement over an array of data. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BatchExecuteStatementResponse

func (BatchExecuteStatementOutput) MarshalFields added in v0.10.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (BatchExecuteStatementOutput) String added in v0.10.0

String returns the string representation

type BatchExecuteStatementRequest added in v0.10.0

type BatchExecuteStatementRequest struct {
	*aws.Request
	Input *BatchExecuteStatementInput
	Copy  func(*BatchExecuteStatementInput) BatchExecuteStatementRequest
}

BatchExecuteStatementRequest is the request type for the BatchExecuteStatement API operation.

func (BatchExecuteStatementRequest) Send added in v0.10.0

Send marshals and sends the BatchExecuteStatement API request.

type BatchExecuteStatementResponse added in v0.10.0

type BatchExecuteStatementResponse struct {
	*BatchExecuteStatementOutput
	// contains filtered or unexported fields
}

BatchExecuteStatementResponse is the response type for the BatchExecuteStatement API operation.

func (*BatchExecuteStatementResponse) SDKResponseMetdata added in v0.10.0

func (r *BatchExecuteStatementResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the BatchExecuteStatement request.

type BeginTransactionInput added in v0.10.0

type BeginTransactionInput struct {
	Database *string `locationName:"database" type:"string"`

	// ResourceArn is a required field
	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`

	Schema *string `locationName:"schema" type:"string"`

	// SecretArn is a required field
	SecretArn *string `locationName:"secretArn" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The request parameters represent the input of a request to start a SQL transaction. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransactionRequest

func (BeginTransactionInput) MarshalFields added in v0.10.0

func (s BeginTransactionInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (BeginTransactionInput) String added in v0.10.0

func (s BeginTransactionInput) String() string

String returns the string representation

func (*BeginTransactionInput) Validate added in v0.10.0

func (s *BeginTransactionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type BeginTransactionOutput added in v0.10.0

type BeginTransactionOutput struct {
	TransactionId *string `locationName:"transactionId" type:"string"`
	// contains filtered or unexported fields
}

The response elements represent the output of a request to start a SQL transaction. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransactionResponse

func (BeginTransactionOutput) MarshalFields added in v0.10.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (BeginTransactionOutput) String added in v0.10.0

func (s BeginTransactionOutput) String() string

String returns the string representation

type BeginTransactionRequest added in v0.10.0

type BeginTransactionRequest struct {
	*aws.Request
	Input *BeginTransactionInput
	Copy  func(*BeginTransactionInput) BeginTransactionRequest
}

BeginTransactionRequest is the request type for the BeginTransaction API operation.

func (BeginTransactionRequest) Send added in v0.10.0

Send marshals and sends the BeginTransaction API request.

type BeginTransactionResponse added in v0.10.0

type BeginTransactionResponse struct {
	*BeginTransactionOutput
	// contains filtered or unexported fields
}

BeginTransactionResponse is the response type for the BeginTransaction API operation.

func (*BeginTransactionResponse) SDKResponseMetdata added in v0.10.0

func (r *BeginTransactionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the BeginTransaction request.

type Client

type Client struct {
	*aws.Client
}

Client provides the API operation methods for making requests to AWS RDS DataService. See this package's package overview docs for details on the service.

The client's methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

func New(config aws.Config) *Client

New creates a new instance of the client from the provided Config.

Example:

// Create a client from just a config.
svc := rdsdata.New(myConfig)

func (*Client) BatchExecuteStatementRequest added in v0.10.0

func (c *Client) BatchExecuteStatementRequest(input *BatchExecuteStatementInput) BatchExecuteStatementRequest

BatchExecuteStatementRequest returns a request value for making API operation for AWS RDS DataService.

Runs a batch SQL statement over an array of data.

You can run bulk update and insert operations for multiple records using a DML statement with different parameter sets. Bulk operations can provide a significant performance improvement over individual insert and update operations.

If a call isn't part of a transaction because it doesn't include the transactionID parameter, changes that result from the call are committed automatically.

// Example sending a request using BatchExecuteStatementRequest.
req := client.BatchExecuteStatementRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BatchExecuteStatement

func (*Client) BeginTransactionRequest added in v0.10.0

func (c *Client) BeginTransactionRequest(input *BeginTransactionInput) BeginTransactionRequest

BeginTransactionRequest returns a request value for making API operation for AWS RDS DataService.

Starts a SQL transaction.

A transaction can run for a maximum of 24 hours. A transaction is terminated and rolled back automatically after 24 hours.

A transaction times out if no calls use its transaction ID in three minutes. If a transaction times out before it's committed, it's rolled back automatically.

DDL statements inside a transaction cause an implicit commit. We recommend that you run each DDL statement in a separate ExecuteStatement call with continueAfterTimeout enabled.

// Example sending a request using BeginTransactionRequest.
req := client.BeginTransactionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/BeginTransaction

func (*Client) CommitTransactionRequest added in v0.10.0

func (c *Client) CommitTransactionRequest(input *CommitTransactionInput) CommitTransactionRequest

CommitTransactionRequest returns a request value for making API operation for AWS RDS DataService.

Ends a SQL transaction started with the BeginTransaction operation and commits the changes.

// Example sending a request using CommitTransactionRequest.
req := client.CommitTransactionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransaction

func (*Client) ExecuteSqlRequest

func (c *Client) ExecuteSqlRequest(input *ExecuteSqlInput) ExecuteSqlRequest

ExecuteSqlRequest returns a request value for making API operation for AWS RDS DataService.

Runs one or more SQL statements.

This operation is deprecated. Use the BatchExecuteStatement or ExecuteStatement operation.

// Example sending a request using ExecuteSqlRequest.
req := client.ExecuteSqlRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteSql

func (*Client) ExecuteStatementRequest added in v0.10.0

func (c *Client) ExecuteStatementRequest(input *ExecuteStatementInput) ExecuteStatementRequest

ExecuteStatementRequest returns a request value for making API operation for AWS RDS DataService.

Runs a SQL statement against a database.

If a call isn't part of a transaction because it doesn't include the transactionID parameter, changes that result from the call are committed automatically.

The response size limit is 1 MB or 1,000 records. If the call returns more than 1 MB of response data or over 1,000 records, the call is terminated.

// Example sending a request using ExecuteStatementRequest.
req := client.ExecuteStatementRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatement

func (*Client) RollbackTransactionRequest added in v0.10.0

func (c *Client) RollbackTransactionRequest(input *RollbackTransactionInput) RollbackTransactionRequest

RollbackTransactionRequest returns a request value for making API operation for AWS RDS DataService.

Performs a rollback of a transaction. Rolling back a transaction cancels its changes.

// Example sending a request using RollbackTransactionRequest.
req := client.RollbackTransactionRequest(params)
resp, err := req.Send(context.TODO())
if err == nil {
    fmt.Println(resp)
}

Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransaction

type ColumnMetadata

type ColumnMetadata struct {
	ArrayBaseColumnType *int64 `locationName:"arrayBaseColumnType" type:"integer"`

	IsAutoIncrement *bool `locationName:"isAutoIncrement" type:"boolean"`

	IsCaseSensitive *bool `locationName:"isCaseSensitive" type:"boolean"`

	IsCurrency *bool `locationName:"isCurrency" type:"boolean"`

	IsSigned *bool `locationName:"isSigned" type:"boolean"`

	Label *string `locationName:"label" type:"string"`

	Name *string `locationName:"name" type:"string"`

	Nullable *int64 `locationName:"nullable" type:"integer"`

	Precision *int64 `locationName:"precision" type:"integer"`

	Scale *int64 `locationName:"scale" type:"integer"`

	SchemaName *string `locationName:"schemaName" type:"string"`

	TableName *string `locationName:"tableName" type:"string"`

	Type *int64 `locationName:"type" type:"integer"`

	TypeName *string `locationName:"typeName" type:"string"`
	// contains filtered or unexported fields
}

Contains the metadata for a column. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ColumnMetadata

func (ColumnMetadata) MarshalFields

func (s ColumnMetadata) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ColumnMetadata) String

func (s ColumnMetadata) String() string

String returns the string representation

type CommitTransactionInput added in v0.10.0

type CommitTransactionInput struct {

	// ResourceArn is a required field
	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`

	// SecretArn is a required field
	SecretArn *string `locationName:"secretArn" type:"string" required:"true"`

	// TransactionId is a required field
	TransactionId *string `locationName:"transactionId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The request parameters represent the input of a commit transaction request. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransactionRequest

func (CommitTransactionInput) MarshalFields added in v0.10.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CommitTransactionInput) String added in v0.10.0

func (s CommitTransactionInput) String() string

String returns the string representation

func (*CommitTransactionInput) Validate added in v0.10.0

func (s *CommitTransactionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type CommitTransactionOutput added in v0.10.0

type CommitTransactionOutput struct {
	TransactionStatus *string `locationName:"transactionStatus" type:"string"`
	// contains filtered or unexported fields
}

The response elements represent the output of a commit transaction request. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/CommitTransactionResponse

func (CommitTransactionOutput) MarshalFields added in v0.10.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (CommitTransactionOutput) String added in v0.10.0

func (s CommitTransactionOutput) String() string

String returns the string representation

type CommitTransactionRequest added in v0.10.0

type CommitTransactionRequest struct {
	*aws.Request
	Input *CommitTransactionInput
	Copy  func(*CommitTransactionInput) CommitTransactionRequest
}

CommitTransactionRequest is the request type for the CommitTransaction API operation.

func (CommitTransactionRequest) Send added in v0.10.0

Send marshals and sends the CommitTransaction API request.

type CommitTransactionResponse added in v0.10.0

type CommitTransactionResponse struct {
	*CommitTransactionOutput
	// contains filtered or unexported fields
}

CommitTransactionResponse is the response type for the CommitTransaction API operation.

func (*CommitTransactionResponse) SDKResponseMetdata added in v0.10.0

func (r *CommitTransactionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the CommitTransaction request.

type ExecuteSqlInput

type ExecuteSqlInput struct {

	// AwsSecretStoreArn is a required field
	AwsSecretStoreArn *string `locationName:"awsSecretStoreArn" type:"string" required:"true"`

	Database *string `locationName:"database" type:"string"`

	// DbClusterOrInstanceArn is a required field
	DbClusterOrInstanceArn *string `locationName:"dbClusterOrInstanceArn" type:"string" required:"true"`

	Schema *string `locationName:"schema" type:"string"`

	// SqlStatements is a required field
	SqlStatements *string `locationName:"sqlStatements" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The request parameters represent the input of a request to run one or more SQL statements. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteSqlRequest

func (ExecuteSqlInput) MarshalFields

func (s ExecuteSqlInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ExecuteSqlInput) String

func (s ExecuteSqlInput) String() string

String returns the string representation

func (*ExecuteSqlInput) Validate

func (s *ExecuteSqlInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ExecuteSqlOutput

type ExecuteSqlOutput struct {
	SqlStatementResults []SqlStatementResult `locationName:"sqlStatementResults" type:"list"`
	// contains filtered or unexported fields
}

The response elements represent the output of a request to run one or more SQL statements. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteSqlResponse

func (ExecuteSqlOutput) MarshalFields

func (s ExecuteSqlOutput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ExecuteSqlOutput) String

func (s ExecuteSqlOutput) String() string

String returns the string representation

type ExecuteSqlRequest

type ExecuteSqlRequest struct {
	*aws.Request
	Input *ExecuteSqlInput
	Copy  func(*ExecuteSqlInput) ExecuteSqlRequest
}

ExecuteSqlRequest is the request type for the ExecuteSql API operation.

func (ExecuteSqlRequest) Send

Send marshals and sends the ExecuteSql API request.

type ExecuteSqlResponse

type ExecuteSqlResponse struct {
	*ExecuteSqlOutput
	// contains filtered or unexported fields
}

ExecuteSqlResponse is the response type for the ExecuteSql API operation.

func (*ExecuteSqlResponse) SDKResponseMetdata

func (r *ExecuteSqlResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ExecuteSql request.

type ExecuteStatementInput added in v0.10.0

type ExecuteStatementInput struct {
	ContinueAfterTimeout *bool `locationName:"continueAfterTimeout" type:"boolean"`

	Database *string `locationName:"database" type:"string"`

	IncludeResultMetadata *bool `locationName:"includeResultMetadata" type:"boolean"`

	Parameters []SqlParameter `locationName:"parameters" type:"list"`

	// ResourceArn is a required field
	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`

	Schema *string `locationName:"schema" type:"string"`

	// SecretArn is a required field
	SecretArn *string `locationName:"secretArn" type:"string" required:"true"`

	// Sql is a required field
	Sql *string `locationName:"sql" type:"string" required:"true"`

	TransactionId *string `locationName:"transactionId" type:"string"`
	// contains filtered or unexported fields
}

The request parameters represent the input of a request to run a SQL statement against a database. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatementRequest

func (ExecuteStatementInput) MarshalFields added in v0.10.0

func (s ExecuteStatementInput) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ExecuteStatementInput) String added in v0.10.0

func (s ExecuteStatementInput) String() string

String returns the string representation

func (*ExecuteStatementInput) Validate added in v0.10.0

func (s *ExecuteStatementInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type ExecuteStatementOutput added in v0.10.0

type ExecuteStatementOutput struct {
	ColumnMetadata []ColumnMetadata `locationName:"columnMetadata" type:"list"`

	GeneratedFields []Field `locationName:"generatedFields" type:"list"`

	NumberOfRecordsUpdated *int64 `locationName:"numberOfRecordsUpdated" type:"long"`

	Records [][]Field `locationName:"records" type:"list"`
	// contains filtered or unexported fields
}

The response elements represent the output of a request to run a SQL statement against a database. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ExecuteStatementResponse

func (ExecuteStatementOutput) MarshalFields added in v0.10.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ExecuteStatementOutput) String added in v0.10.0

func (s ExecuteStatementOutput) String() string

String returns the string representation

type ExecuteStatementRequest added in v0.10.0

type ExecuteStatementRequest struct {
	*aws.Request
	Input *ExecuteStatementInput
	Copy  func(*ExecuteStatementInput) ExecuteStatementRequest
}

ExecuteStatementRequest is the request type for the ExecuteStatement API operation.

func (ExecuteStatementRequest) Send added in v0.10.0

Send marshals and sends the ExecuteStatement API request.

type ExecuteStatementResponse added in v0.10.0

type ExecuteStatementResponse struct {
	*ExecuteStatementOutput
	// contains filtered or unexported fields
}

ExecuteStatementResponse is the response type for the ExecuteStatement API operation.

func (*ExecuteStatementResponse) SDKResponseMetdata added in v0.10.0

func (r *ExecuteStatementResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the ExecuteStatement request.

type Field added in v0.10.0

type Field struct {

	// BlobValue is automatically base64 encoded/decoded by the SDK.
	BlobValue []byte `locationName:"blobValue" type:"blob"`

	BooleanValue *bool `locationName:"booleanValue" type:"boolean"`

	DoubleValue *float64 `locationName:"doubleValue" type:"double"`

	IsNull *bool `locationName:"isNull" type:"boolean"`

	LongValue *int64 `locationName:"longValue" type:"long"`

	StringValue *string `locationName:"stringValue" type:"string"`
	// contains filtered or unexported fields
}

Contains a value. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/Field

func (Field) MarshalFields added in v0.10.0

func (s Field) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Field) String added in v0.10.0

func (s Field) String() string

String returns the string representation

type Record

type Record struct {
	Values []Value `locationName:"values" type:"list"`
	// contains filtered or unexported fields
}

A record returned by a call. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/Record

func (Record) MarshalFields

func (s Record) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Record) String

func (s Record) String() string

String returns the string representation

type ResultFrame

type ResultFrame struct {
	Records []Record `locationName:"records" type:"list"`

	// The metadata of the result set returned by a SQL statement.
	ResultSetMetadata *ResultSetMetadata `locationName:"resultSetMetadata" type:"structure"`
	// contains filtered or unexported fields
}

The result set returned by a SQL statement. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ResultFrame

func (ResultFrame) MarshalFields

func (s ResultFrame) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ResultFrame) String

func (s ResultFrame) String() string

String returns the string representation

type ResultSetMetadata

type ResultSetMetadata struct {
	ColumnCount *int64 `locationName:"columnCount" type:"long"`

	ColumnMetadata []ColumnMetadata `locationName:"columnMetadata" type:"list"`
	// contains filtered or unexported fields
}

The metadata of the result set returned by a SQL statement. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/ResultSetMetadata

func (ResultSetMetadata) MarshalFields

func (s ResultSetMetadata) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (ResultSetMetadata) String

func (s ResultSetMetadata) String() string

String returns the string representation

type RollbackTransactionInput added in v0.10.0

type RollbackTransactionInput struct {

	// ResourceArn is a required field
	ResourceArn *string `locationName:"resourceArn" type:"string" required:"true"`

	// SecretArn is a required field
	SecretArn *string `locationName:"secretArn" type:"string" required:"true"`

	// TransactionId is a required field
	TransactionId *string `locationName:"transactionId" type:"string" required:"true"`
	// contains filtered or unexported fields
}

The request parameters represent the input of a request to perform a rollback of a transaction. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransactionRequest

func (RollbackTransactionInput) MarshalFields added in v0.10.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (RollbackTransactionInput) String added in v0.10.0

func (s RollbackTransactionInput) String() string

String returns the string representation

func (*RollbackTransactionInput) Validate added in v0.10.0

func (s *RollbackTransactionInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type RollbackTransactionOutput added in v0.10.0

type RollbackTransactionOutput struct {
	TransactionStatus *string `locationName:"transactionStatus" type:"string"`
	// contains filtered or unexported fields
}

The response elements represent the output of a request to perform a rollback of a transaction. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/RollbackTransactionResponse

func (RollbackTransactionOutput) MarshalFields added in v0.10.0

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (RollbackTransactionOutput) String added in v0.10.0

func (s RollbackTransactionOutput) String() string

String returns the string representation

type RollbackTransactionRequest added in v0.10.0

type RollbackTransactionRequest struct {
	*aws.Request
	Input *RollbackTransactionInput
	Copy  func(*RollbackTransactionInput) RollbackTransactionRequest
}

RollbackTransactionRequest is the request type for the RollbackTransaction API operation.

func (RollbackTransactionRequest) Send added in v0.10.0

Send marshals and sends the RollbackTransaction API request.

type RollbackTransactionResponse added in v0.10.0

type RollbackTransactionResponse struct {
	*RollbackTransactionOutput
	// contains filtered or unexported fields
}

RollbackTransactionResponse is the response type for the RollbackTransaction API operation.

func (*RollbackTransactionResponse) SDKResponseMetdata added in v0.10.0

func (r *RollbackTransactionResponse) SDKResponseMetdata() *aws.Response

SDKResponseMetdata returns the response metadata for the RollbackTransaction request.

type SqlParameter added in v0.10.0

type SqlParameter struct {
	Name *string `locationName:"name" type:"string"`

	// Contains a value.
	Value *Field `locationName:"value" type:"structure"`
	// contains filtered or unexported fields
}

A parameter used in a SQL statement. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/SqlParameter

func (SqlParameter) MarshalFields added in v0.10.0

func (s SqlParameter) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (SqlParameter) String added in v0.10.0

func (s SqlParameter) String() string

String returns the string representation

type SqlStatementResult

type SqlStatementResult struct {
	NumberOfRecordsUpdated *int64 `locationName:"numberOfRecordsUpdated" type:"long"`

	// The result set returned by a SQL statement.
	ResultFrame *ResultFrame `locationName:"resultFrame" type:"structure"`
	// contains filtered or unexported fields
}

The result of a SQL statement. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/SqlStatementResult

func (SqlStatementResult) MarshalFields

func (s SqlStatementResult) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (SqlStatementResult) String

func (s SqlStatementResult) String() string

String returns the string representation

type StructValue

type StructValue struct {
	Attributes []Value `locationName:"attributes" type:"list"`
	// contains filtered or unexported fields
}

A structure value returned by a call. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/StructValue

func (StructValue) MarshalFields

func (s StructValue) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (StructValue) String

func (s StructValue) String() string

String returns the string representation

type UpdateResult added in v0.10.0

type UpdateResult struct {
	GeneratedFields []Field `locationName:"generatedFields" type:"list"`
	// contains filtered or unexported fields
}

The response elements represent the results of an update. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/UpdateResult

func (UpdateResult) MarshalFields added in v0.10.0

func (s UpdateResult) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (UpdateResult) String added in v0.10.0

func (s UpdateResult) String() string

String returns the string representation

type Value

type Value struct {
	ArrayValues []Value `locationName:"arrayValues" type:"list"`

	BigIntValue *int64 `locationName:"bigIntValue" type:"long"`

	BitValue *bool `locationName:"bitValue" type:"boolean"`

	// BlobValue is automatically base64 encoded/decoded by the SDK.
	BlobValue []byte `locationName:"blobValue" type:"blob"`

	DoubleValue *float64 `locationName:"doubleValue" type:"double"`

	IntValue *int64 `locationName:"intValue" type:"integer"`

	IsNull *bool `locationName:"isNull" type:"boolean"`

	RealValue *float64 `locationName:"realValue" type:"float"`

	StringValue *string `locationName:"stringValue" type:"string"`

	// A structure value returned by a call.
	StructValue *StructValue `locationName:"structValue" type:"structure"`
	// contains filtered or unexported fields
}

Contains the value of a column. Please also see https://docs.aws.amazon.com/goto/WebAPI/rds-data-2018-08-01/Value

func (Value) MarshalFields

func (s Value) MarshalFields(e protocol.FieldEncoder) error

MarshalFields encodes the AWS API shape using the passed in protocol encoder.

func (Value) String

func (s Value) String() string

String returns the string representation

Directories

Path Synopsis
Package rdsdataiface provides an interface to enable mocking the AWS RDS DataService service client for testing your code.
Package rdsdataiface provides an interface to enable mocking the AWS RDS DataService service client for testing your code.

Jump to

Keyboard shortcuts

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