Class: Aws::Context::Types::SqlColumnMetadata

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-context/lib/aws-sdk-context/types.rb

Overview

A result column.

Constant Summary collapse

SENSITIVE =
[:name]

Instance Attribute Summary collapse

Instance Attribute Details

#name ⇒ String

The column name or alias as the engine reports it. Not unique: SELECT a.id, b.id returns two id columns.

Returns:

  • (String)


6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6483

class SqlColumnMetadata < Struct.new(
  :name,
  :type,
  :type_name,
  :nullable,
  :precision,
  :scale,
  :time_zone)
  SENSITIVE = [:name]
  include Aws::Structure
end

#nullable ⇒ Boolean

Specifies whether the column can hold NULL.

Returns:

  • (Boolean)


6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6483

class SqlColumnMetadata < Struct.new(
  :name,
  :type,
  :type_name,
  :nullable,
  :precision,
  :scale,
  :time_zone)
  SENSITIVE = [:name]
  include Aws::Structure
end

#precision ⇒ Integer

DECIMAL: total digits. TIME and TIMESTAMP: fractional-second digits.

Returns:

  • (Integer)


6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6483

class SqlColumnMetadata < Struct.new(
  :name,
  :type,
  :type_name,
  :nullable,
  :precision,
  :scale,
  :time_zone)
  SENSITIVE = [:name]
  include Aws::Structure
end

#scale ⇒ Integer

DECIMAL: digits after the decimal point.

Returns:

  • (Integer)


6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6483

class SqlColumnMetadata < Struct.new(
  :name,
  :type,
  :type_name,
  :nullable,
  :precision,
  :scale,
  :time_zone)
  SENSITIVE = [:name]
  include Aws::Structure
end

#time_zone ⇒ String

TIMESTAMP only: set when the engine stores an instant, for example UTC.

Returns:

  • (String)


6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6483

class SqlColumnMetadata < Struct.new(
  :name,
  :type,
  :type_name,
  :nullable,
  :precision,
  :scale,
  :time_zone)
  SENSITIVE = [:name]
  include Aws::Structure
end

#type ⇒ String

The column's portable SQL type. It fixes which SqlValue member the column's values use.

Returns:

  • (String)


6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6483

class SqlColumnMetadata < Struct.new(
  :name,
  :type,
  :type_name,
  :nullable,
  :precision,
  :scale,
  :time_zone)
  SENSITIVE = [:name]
  include Aws::Structure
end

#type_name ⇒ String

The engine's own type, for example Timestamp(MICROSECOND, UTC) or Decimal(12, 2, 128).

Returns:

  • (String)


6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6483

class SqlColumnMetadata < Struct.new(
  :name,
  :type,
  :type_name,
  :nullable,
  :precision,
  :scale,
  :time_zone)
  SENSITIVE = [:name]
  include Aws::Structure
end