Documentation ¶
Index ¶
- type ColumnMetadata
- type ExecuteStatementException
- type Field
- type FieldMemberBlobValue
- type FieldMemberBooleanValue
- type FieldMemberDoubleValue
- type FieldMemberIsNull
- type FieldMemberLongValue
- type FieldMemberStringValue
- type InternalServerException
- type ResourceNotFoundException
- type StatementData
- type StatusString
- type TableMember
- type UnknownUnionMember
- type ValidationException
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColumnMetadata ¶
type ColumnMetadata struct { // The default value of the column. ColumnDefault *string // A value that indicates whether the column is case-sensitive. IsCaseSensitive bool // A value that indicates whether the column contains currency values. IsCurrency bool // A value that indicates whether an integer column is signed. IsSigned bool // The label for the column. Label *string // The length of the column. Length int32 // The name of the column. Name *string // A value that indicates whether the column is nullable. Nullable int32 // The precision value of a decimal number column. Precision int32 // The scale value of a decimal number column. Scale int32 // The name of the schema that contains the table that includes the column. SchemaName *string // The name of the table that includes the column. TableName *string // The database-specific data type of the column. TypeName *string }
The properties (metadata) of a column.
type ExecuteStatementException ¶
The SQL statement encountered an environmental error while running.
func (*ExecuteStatementException) Error ¶
func (e *ExecuteStatementException) Error() string
func (*ExecuteStatementException) ErrorCode ¶
func (e *ExecuteStatementException) ErrorCode() string
func (*ExecuteStatementException) ErrorFault ¶
func (e *ExecuteStatementException) ErrorFault() smithy.ErrorFault
func (*ExecuteStatementException) ErrorMessage ¶
func (e *ExecuteStatementException) ErrorMessage() string
type Field ¶
type Field interface {
// contains filtered or unexported methods
}
A data value in a column.
The following types satisfy this interface:
FieldMemberIsNull FieldMemberBooleanValue FieldMemberLongValue FieldMemberDoubleValue FieldMemberStringValue FieldMemberBlobValue
Example (OutputUsage) ¶
// Code generated by smithy-go-codegen DO NOT EDIT. package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/redshiftdata/types" ) func main() { var union types.Field // type switches can be used to check the union value switch v := union.(type) { case *types.FieldMemberBlobValue: _ = v.Value // Value is []byte case *types.FieldMemberBooleanValue: _ = v.Value // Value is bool case *types.FieldMemberDoubleValue: _ = v.Value // Value is float64 case *types.FieldMemberIsNull: _ = v.Value // Value is bool case *types.FieldMemberLongValue: _ = v.Value // Value is int64 case *types.FieldMemberStringValue: _ = v.Value // Value is string case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } } var _ *string var _ *bool var _ *int64 var _ *float64 var _ []byte
Output:
type FieldMemberBlobValue ¶
type FieldMemberBlobValue struct {
Value []byte
}
A value of the BLOB data type.
type FieldMemberBooleanValue ¶
type FieldMemberBooleanValue struct {
Value bool
}
A value of the Boolean data type.
type FieldMemberDoubleValue ¶
type FieldMemberDoubleValue struct {
Value float64
}
A value of the double data type.
type FieldMemberIsNull ¶
type FieldMemberIsNull struct {
Value bool
}
A value that indicates whether the data is NULL.
type FieldMemberLongValue ¶
type FieldMemberLongValue struct {
Value int64
}
A value of the long data type.
type FieldMemberStringValue ¶
type FieldMemberStringValue struct {
Value string
}
A value of the string data type.
type InternalServerException ¶
type InternalServerException struct {
Message *string
}
The Amazon Redshift Data API operation failed due to invalid input.
func (*InternalServerException) Error ¶
func (e *InternalServerException) Error() string
func (*InternalServerException) ErrorCode ¶
func (e *InternalServerException) ErrorCode() string
func (*InternalServerException) ErrorFault ¶
func (e *InternalServerException) ErrorFault() smithy.ErrorFault
func (*InternalServerException) ErrorMessage ¶
func (e *InternalServerException) ErrorMessage() string
type ResourceNotFoundException ¶
The Amazon Redshift Data API operation failed due to a missing resource.
func (*ResourceNotFoundException) Error ¶
func (e *ResourceNotFoundException) Error() string
func (*ResourceNotFoundException) ErrorCode ¶
func (e *ResourceNotFoundException) ErrorCode() string
func (*ResourceNotFoundException) ErrorFault ¶
func (e *ResourceNotFoundException) ErrorFault() smithy.ErrorFault
func (*ResourceNotFoundException) ErrorMessage ¶
func (e *ResourceNotFoundException) ErrorMessage() string
type StatementData ¶
type StatementData struct { // The SQL statement identifier. This value is a universally unique identifier // (UUID) generated by Amazon Redshift Data API. // // This member is required. Id *string // The date and time (UTC) the statement was created. CreatedAt *time.Time // The SQL statement. QueryString *string // The name or Amazon Resource Name (ARN) of the secret that enables access to the // database. SecretArn *string // The name of the SQL statement. StatementName *string // The status of the SQL statement. An example is the that the SQL statement // finished. Status StatusString // The date and time (UTC) that the statement metadata was last updated. UpdatedAt *time.Time }
The SQL statement to run.
type StatusString ¶
type StatusString string
const ( StatusStringSubmitted StatusString = "SUBMITTED" StatusStringPicked StatusString = "PICKED" StatusStringStarted StatusString = "STARTED" StatusStringFinished StatusString = "FINISHED" StatusStringAborted StatusString = "ABORTED" StatusStringFailed StatusString = "FAILED" StatusStringAll StatusString = "ALL" )
Enum values for StatusString
func (StatusString) Values ¶
func (StatusString) Values() []StatusString
Values returns all known values for StatusString. Note that this can be expanded in the future, and so it is only as up to date as the client. The ordering of this slice is not guaranteed to be stable across updates.
type TableMember ¶
type TableMember struct { // The name of the table. Name *string // The schema containing the table. Schema *string // The type of the table. Possible values include TABLE, VIEW, SYSTEM TABLE, GLOBAL // TEMPORARY, LOCAL TEMPORARY, ALIAS, and SYNONYM. Type *string }
The properties of a table.
type UnknownUnionMember ¶
UnknownUnionMember is returned when a union member is returned over the wire, but has an unknown tag.
type ValidationException ¶
type ValidationException struct {
Message *string
}
The Amazon Redshift Data API operation failed due to invalid input.
func (*ValidationException) Error ¶
func (e *ValidationException) Error() string
func (*ValidationException) ErrorCode ¶
func (e *ValidationException) ErrorCode() string
func (*ValidationException) ErrorFault ¶
func (e *ValidationException) ErrorFault() smithy.ErrorFault
func (*ValidationException) ErrorMessage ¶
func (e *ValidationException) ErrorMessage() string