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.

ColumnMetadata

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

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"` }

Column Metadata

ArrayBaseColumnType

Type: *int64

Homogenous array base SQL type from java.sql.Types.

IsAutoIncrement

Type: *bool

Whether the designated column is automatically numbered

IsCaseSensitive

Type: *bool

Whether values in the designated column's case matters

IsCurrency

Type: *bool

Whether values in the designated column is a cash value

IsSigned

Type: *bool

Whether values in the designated column are signed numbers

Label

Type: *string

Usually specified by the SQL AS. If not specified, return column name.

Name

Type: *string

Name of the column.

Nullable

Type: *int64

Indicates the nullability of values in the designated column. One of columnNoNulls (0), columnNullable (1), columnNullableUnknown (2)

Precision

Type: *int64

Get the designated column's specified column size.For numeric data, this is the maximum precision. For character data, this is the length in characters. For datetime datatypes, this is the length in characters of the String representation (assuming the maximum allowed precision of the fractional seconds component). For binary data, this is the length in bytes. For the ROWID datatype, this is the length in bytes. 0 is returned for data types where the column size is not applicable.

Scale

Type: *int64

Designated column's number of digits to right of the decimal point. 0 is returned for data types where the scale is not applicable.

SchemaName

Type: *string

Designated column's table's schema

TableName

Type: *string

Designated column's table name

Type

Type: *int64

SQL type from java.sql.Types.

TypeName

Type: *string

Database-specific type name.

Method

GoString

func (s ColumnMetadata) GoString() string

GoString returns the string representation

SetArrayBaseColumnType

func (s *ColumnMetadata) SetArrayBaseColumnType(v int64) *ColumnMetadata

SetArrayBaseColumnType sets the ArrayBaseColumnType field's value.

SetIsAutoIncrement

func (s *ColumnMetadata) SetIsAutoIncrement(v bool) *ColumnMetadata

SetIsAutoIncrement sets the IsAutoIncrement field's value.

SetIsCaseSensitive

func (s *ColumnMetadata) SetIsCaseSensitive(v bool) *ColumnMetadata

SetIsCaseSensitive sets the IsCaseSensitive field's value.

SetIsCurrency

func (s *ColumnMetadata) SetIsCurrency(v bool) *ColumnMetadata

SetIsCurrency sets the IsCurrency field's value.

SetIsSigned

func (s *ColumnMetadata) SetIsSigned(v bool) *ColumnMetadata

SetIsSigned sets the IsSigned field's value.

SetLabel

func (s *ColumnMetadata) SetLabel(v string) *ColumnMetadata

SetLabel sets the Label field's value.

SetName

func (s *ColumnMetadata) SetName(v string) *ColumnMetadata

SetName sets the Name field's value.

SetNullable

func (s *ColumnMetadata) SetNullable(v int64) *ColumnMetadata

SetNullable sets the Nullable field's value.

SetPrecision

func (s *ColumnMetadata) SetPrecision(v int64) *ColumnMetadata

SetPrecision sets the Precision field's value.

SetScale

func (s *ColumnMetadata) SetScale(v int64) *ColumnMetadata

SetScale sets the Scale field's value.

SetSchemaName

func (s *ColumnMetadata) SetSchemaName(v string) *ColumnMetadata

SetSchemaName sets the SchemaName field's value.

SetTableName

func (s *ColumnMetadata) SetTableName(v string) *ColumnMetadata

SetTableName sets the TableName field's value.

SetType

func (s *ColumnMetadata) SetType(v int64) *ColumnMetadata

SetType sets the Type field's value.

SetTypeName

func (s *ColumnMetadata) SetTypeName(v string) *ColumnMetadata

SetTypeName sets the TypeName field's value.

String

func (s ColumnMetadata) String() string

String returns the string representation

On this page: