package types
import "github.com/aws/aws-sdk-go-v2/service/rdsdata/types"
Index ¶
- type ArrayValue
- type ArrayValueMemberArrayValues
- type ArrayValueMemberBooleanValues
- type ArrayValueMemberDoubleValues
- type ArrayValueMemberLongValues
- type ArrayValueMemberStringValues
- type BadRequestException
- func (e *BadRequestException) Error() string
- func (e *BadRequestException) ErrorCode() string
- func (e *BadRequestException) ErrorFault() smithy.ErrorFault
- func (e *BadRequestException) ErrorMessage() string
- type ColumnMetadata
- type DecimalReturnType
- type Field
- type FieldMemberArrayValue
- type FieldMemberBlobValue
- type FieldMemberBooleanValue
- type FieldMemberDoubleValue
- type FieldMemberIsNull
- type FieldMemberLongValue
- type FieldMemberStringValue
- type ForbiddenException
- func (e *ForbiddenException) Error() string
- func (e *ForbiddenException) ErrorCode() string
- func (e *ForbiddenException) ErrorFault() smithy.ErrorFault
- func (e *ForbiddenException) ErrorMessage() string
- type InternalServerErrorException
- func (e *InternalServerErrorException) Error() string
- func (e *InternalServerErrorException) ErrorCode() string
- func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault
- func (e *InternalServerErrorException) ErrorMessage() string
- type NotFoundException
- func (e *NotFoundException) Error() string
- func (e *NotFoundException) ErrorCode() string
- func (e *NotFoundException) ErrorFault() smithy.ErrorFault
- func (e *NotFoundException) ErrorMessage() string
- type Record
- type ResultFrame
- type ResultSetMetadata
- type ResultSetOptions
- type ServiceUnavailableError
- func (e *ServiceUnavailableError) Error() string
- func (e *ServiceUnavailableError) ErrorCode() string
- func (e *ServiceUnavailableError) ErrorFault() smithy.ErrorFault
- func (e *ServiceUnavailableError) ErrorMessage() string
- type SqlParameter
- type SqlStatementResult
- type StatementTimeoutException
- func (e *StatementTimeoutException) Error() string
- func (e *StatementTimeoutException) ErrorCode() string
- func (e *StatementTimeoutException) ErrorFault() smithy.ErrorFault
- func (e *StatementTimeoutException) ErrorMessage() string
- type StructValue
- type TypeHint
- type UnknownUnionMember
- type UpdateResult
- type Value
- type ValueMemberArrayValues
- type ValueMemberBigIntValue
- type ValueMemberBitValue
- type ValueMemberBlobValue
- type ValueMemberDoubleValue
- type ValueMemberIntValue
- type ValueMemberIsNull
- type ValueMemberRealValue
- type ValueMemberStringValue
- type ValueMemberStructValue
Examples ¶
Types ¶
type ArrayValue ¶
type ArrayValue interface {
// contains filtered or unexported methods
}
Contains an array.
The following types satisfy this interface:
ArrayValueMemberBooleanValues ArrayValueMemberLongValues ArrayValueMemberDoubleValues ArrayValueMemberStringValues ArrayValueMemberArrayValues
Example (OutputUsage)¶
Code:play
package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/rdsdata/types" ) func main() { var union types.ArrayValue // type switches can be used to check the union value switch v := union.(type) { case *types.ArrayValueMemberArrayValues: _ = v.Value // Value is []types.ArrayValue case *types.ArrayValueMemberBooleanValues: _ = v.Value // Value is []bool case *types.ArrayValueMemberDoubleValues: _ = v.Value // Value is []float64 case *types.ArrayValueMemberLongValues: _ = v.Value // Value is []int64 case *types.ArrayValueMemberStringValues: _ = v.Value // Value is []string case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
type ArrayValueMemberArrayValues ¶
type ArrayValueMemberArrayValues struct { Value []ArrayValue }
An array of arrays.
type ArrayValueMemberBooleanValues ¶
type ArrayValueMemberBooleanValues struct { Value []bool }
An array of Boolean values.
type ArrayValueMemberDoubleValues ¶
type ArrayValueMemberDoubleValues struct { Value []float64 }
An array of integers.
type ArrayValueMemberLongValues ¶
type ArrayValueMemberLongValues struct { Value []int64 }
An array of floating point numbers.
type ArrayValueMemberStringValues ¶
type ArrayValueMemberStringValues struct { Value []string }
An array of strings.
type BadRequestException ¶
type BadRequestException struct { Message *string }
There is an error in the call or in a SQL statement.
func (*BadRequestException) Error ¶
func (e *BadRequestException) Error() string
func (*BadRequestException) ErrorCode ¶
func (e *BadRequestException) ErrorCode() string
func (*BadRequestException) ErrorFault ¶
func (e *BadRequestException) ErrorFault() smithy.ErrorFault
func (*BadRequestException) ErrorMessage ¶
func (e *BadRequestException) ErrorMessage() string
type ColumnMetadata ¶
type ColumnMetadata struct { // The type of the column. ArrayBaseColumnType int32 // A value that indicates whether the column increments automatically. IsAutoIncrement bool // 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 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 owns the table that includes the column. SchemaName *string // The name of the table that includes the column. TableName *string // The type of the column. Type int32 // The database-specific data type of the column. TypeName *string }
Contains the metadata for a column.
type DecimalReturnType ¶
type DecimalReturnType string
const ( DecimalReturnTypeString DecimalReturnType = "STRING" DecimalReturnTypeDoubleOrLong DecimalReturnType = "DOUBLE_OR_LONG" )
Enum values for DecimalReturnType
func (DecimalReturnType) Values ¶
func (DecimalReturnType) Values() []DecimalReturnType
Values returns all known values for DecimalReturnType. 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 Field ¶
type Field interface {
// contains filtered or unexported methods
}
Contains a value.
The following types satisfy this interface:
FieldMemberIsNull FieldMemberBooleanValue FieldMemberLongValue FieldMemberDoubleValue FieldMemberStringValue FieldMemberBlobValue FieldMemberArrayValue
Example (OutputUsage)¶
Code:play
package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/rdsdata/types" ) func main() { var union types.Field // type switches can be used to check the union value switch v := union.(type) { case *types.FieldMemberArrayValue: _ = v.Value // Value is types.ArrayValue 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") } }
type FieldMemberArrayValue ¶
type FieldMemberArrayValue struct { Value ArrayValue }
An array of values.
type FieldMemberBlobValue ¶
type FieldMemberBlobValue struct { Value []byte }
A value of BLOB data type.
type FieldMemberBooleanValue ¶
type FieldMemberBooleanValue struct { Value bool }
A value of Boolean data type.
type FieldMemberDoubleValue ¶
type FieldMemberDoubleValue struct { Value float64 }
A value of double data type.
type FieldMemberIsNull ¶
type FieldMemberIsNull struct { Value bool }
A NULL value.
type FieldMemberLongValue ¶
type FieldMemberLongValue struct { Value int64 }
A value of long data type.
type FieldMemberStringValue ¶
type FieldMemberStringValue struct { Value string }
A value of string data type.
type ForbiddenException ¶
type ForbiddenException struct { Message *string }
There are insufficient privileges to make the call.
func (*ForbiddenException) Error ¶
func (e *ForbiddenException) Error() string
func (*ForbiddenException) ErrorCode ¶
func (e *ForbiddenException) ErrorCode() string
func (*ForbiddenException) ErrorFault ¶
func (e *ForbiddenException) ErrorFault() smithy.ErrorFault
func (*ForbiddenException) ErrorMessage ¶
func (e *ForbiddenException) ErrorMessage() string
type InternalServerErrorException ¶
type InternalServerErrorException struct { Message *string }
An internal error occurred.
func (*InternalServerErrorException) Error ¶
func (e *InternalServerErrorException) Error() string
func (*InternalServerErrorException) ErrorCode ¶
func (e *InternalServerErrorException) ErrorCode() string
func (*InternalServerErrorException) ErrorFault ¶
func (e *InternalServerErrorException) ErrorFault() smithy.ErrorFault
func (*InternalServerErrorException) ErrorMessage ¶
func (e *InternalServerErrorException) ErrorMessage() string
type NotFoundException ¶
type NotFoundException struct { Message *string }
The resourceArn, secretArn, or transactionId value can't be found.
func (*NotFoundException) Error ¶
func (e *NotFoundException) Error() string
func (*NotFoundException) ErrorCode ¶
func (e *NotFoundException) ErrorCode() string
func (*NotFoundException) ErrorFault ¶
func (e *NotFoundException) ErrorFault() smithy.ErrorFault
func (*NotFoundException) ErrorMessage ¶
func (e *NotFoundException) ErrorMessage() string
type Record ¶
type Record struct { // The values returned in the record. Values []Value }
A record returned by a call.
type ResultFrame ¶
type ResultFrame struct { // The records in the result set. Records []Record // The result-set metadata in the result set. ResultSetMetadata *ResultSetMetadata }
The result set returned by a SQL statement.
type ResultSetMetadata ¶
type ResultSetMetadata struct { // The number of columns in the result set. ColumnCount int64 // The metadata of the columns in the result set. ColumnMetadata []ColumnMetadata }
The metadata of the result set returned by a SQL statement.
type ResultSetOptions ¶
type ResultSetOptions struct { // A value that indicates how a field of DECIMAL type is represented in the // response. The value of STRING, the default, specifies that it is converted to a // String value. The value of DOUBLE_OR_LONG specifies that it is converted to a // Long value if its scale is 0, or to a Double value otherwise. Conversion to // Double or Long can result in roundoff errors due to precision loss. We recommend // converting to String, especially when working with currency values. DecimalReturnType DecimalReturnType }
Options that control how the result set is returned.
type ServiceUnavailableError ¶
type ServiceUnavailableError struct { string }*
The service specified by the resourceArn parameter is not available.
func (*ServiceUnavailableError) Error ¶
func (e *ServiceUnavailableError) Error() string
func (*ServiceUnavailableError) ErrorCode ¶
func (e *ServiceUnavailableError) ErrorCode() string
func (*ServiceUnavailableError) ErrorFault ¶
func (e *ServiceUnavailableError) ErrorFault() smithy.ErrorFault
func (*ServiceUnavailableError) ErrorMessage ¶
func (e *ServiceUnavailableError) ErrorMessage() string
type SqlParameter ¶
type SqlParameter struct { // The name of the parameter. Name *string // A hint that specifies the correct object type for data type mapping. Possible // values are as follows: // // * DATE - The corresponding String parameter value is // sent as an object of DATE type to the database. The accepted format is // YYYY-MM-DD. // // * DECIMAL - The corresponding String parameter value is sent as an // object of DECIMAL type to the database. // // * JSON - The corresponding String // parameter value is sent as an object of JSON type to the database. // // * TIME - The // corresponding String parameter value is sent as an object of TIME type to the // database. The accepted format is HH:MM:SS[.FFF]. // // * TIMESTAMP - The // corresponding String parameter value is sent as an object of TIMESTAMP type to // the database. The accepted format is YYYY-MM-DD HH:MM:SS[.FFF]. // // * UUID - The // corresponding String parameter value is sent as an object of UUID type to the // database. TypeHint TypeHint // The value of the parameter. Value Field }
A parameter used in a SQL statement.
type SqlStatementResult ¶
type SqlStatementResult struct { // The number of records updated by a SQL statement. NumberOfRecordsUpdated int64 // The result set of the SQL statement. ResultFrame *ResultFrame }
The result of a SQL statement. This data type is deprecated.
type StatementTimeoutException ¶
The execution of the SQL statement timed out.
func (*StatementTimeoutException) Error ¶
func (e *StatementTimeoutException) Error() string
func (*StatementTimeoutException) ErrorCode ¶
func (e *StatementTimeoutException) ErrorCode() string
func (*StatementTimeoutException) ErrorFault ¶
func (e *StatementTimeoutException) ErrorFault() smithy.ErrorFault
func (*StatementTimeoutException) ErrorMessage ¶
func (e *StatementTimeoutException) ErrorMessage() string
type StructValue ¶
type StructValue struct { // The attributes returned in the record. Attributes []Value }
A structure value returned by a call.
type TypeHint ¶
type TypeHint string
const ( TypeHintJson TypeHint = "JSON" TypeHintUuid TypeHint = "UUID" TypeHintTimestamp TypeHint = "TIMESTAMP" TypeHintDate TypeHint = "DATE" TypeHintTime TypeHint = "TIME" TypeHintDecimal TypeHint = "DECIMAL" )
Enum values for TypeHint
func (TypeHint) Values ¶
Values returns all known values for TypeHint. 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 UnknownUnionMember ¶
UnknownUnionMember is returned when a union member is returned over the wire, but has an unknown tag.
type UpdateResult ¶
type UpdateResult struct { // Values for fields generated during the request. GeneratedFields []Field }
The response elements represent the results of an update.
type Value ¶
type Value interface {
// contains filtered or unexported methods
}
Contains the value of a column. This data type is deprecated.
The following types satisfy this interface:
ValueMemberIsNull ValueMemberBitValue ValueMemberBigIntValue ValueMemberIntValue ValueMemberDoubleValue ValueMemberRealValue ValueMemberStringValue ValueMemberBlobValue ValueMemberArrayValues ValueMemberStructValue
Example (OutputUsage)¶
Code:play
package main import ( "fmt" "github.com/aws/aws-sdk-go-v2/service/rdsdata/types" ) func main() { var union types.Value // type switches can be used to check the union value switch v := union.(type) { case *types.ValueMemberArrayValues: _ = v.Value // Value is []types.Value case *types.ValueMemberBigIntValue: _ = v.Value // Value is int64 case *types.ValueMemberBitValue: _ = v.Value // Value is bool case *types.ValueMemberBlobValue: _ = v.Value // Value is []byte case *types.ValueMemberDoubleValue: _ = v.Value // Value is float64 case *types.ValueMemberIntValue: _ = v.Value // Value is int32 case *types.ValueMemberIsNull: _ = v.Value // Value is bool case *types.ValueMemberRealValue: _ = v.Value // Value is float32 case *types.ValueMemberStringValue: _ = v.Value // Value is string case *types.ValueMemberStructValue: _ = v.Value // Value is types.StructValue case *types.UnknownUnionMember: fmt.Println("unknown tag:", v.Tag) default: fmt.Println("union is nil or unknown type") } }
type ValueMemberArrayValues ¶
type ValueMemberArrayValues struct { Value []Value }
An array of column values.
type ValueMemberBigIntValue ¶
type ValueMemberBigIntValue struct { Value int64 }
A value for a column of big integer data type.
type ValueMemberBitValue ¶
type ValueMemberBitValue struct { Value bool }
A value for a column of BIT data type.
type ValueMemberBlobValue ¶
type ValueMemberBlobValue struct { Value []byte }
A value for a column of BLOB data type.
type ValueMemberDoubleValue ¶
type ValueMemberDoubleValue struct { Value float64 }
A value for a column of double data type.
type ValueMemberIntValue ¶
type ValueMemberIntValue struct { Value int32 }
A value for a column of integer data type.
type ValueMemberIsNull ¶
type ValueMemberIsNull struct { Value bool }
A NULL value.
type ValueMemberRealValue ¶
type ValueMemberRealValue struct { Value float32 }
A value for a column of real data type.
type ValueMemberStringValue ¶
type ValueMemberStringValue struct { Value string }
A value for a column of string data type.
type ValueMemberStructValue ¶
type ValueMemberStructValue struct { Value StructValue }
A value for a column of STRUCT data type.
Source Files ¶
- Version
- v1.2.2
- Published
- Apr 8, 2021
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 1 hour ago –
Tools for package owners.