Class: Aws::Context::Types::SqlValue
- Inherits:
-
Struct
- Object
- Struct
- Aws::Context::Types::SqlValue
- Defined in:
- gems/aws-sdk-context/lib/aws-sdk-context/types.rb
Overview
SqlValue is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of SqlValue corresponding to the set member.
One value. Exactly one member is set, and the column's type
determines which member.
Defined Under Namespace
Classes: BlobValue, BooleanValue, DoubleValue, JsonValue, LongValue, NullValue, StringValue, Unknown
Constant Summary collapse
- SENSITIVE =
[:string_value, :json_value]
Instance Attribute Summary collapse
-
#blob_value ⇒ String
A VARBINARY column value, as binary data.
-
#boolean_value ⇒ Boolean
A BOOLEAN column value.
-
#double_value ⇒ Float
REAL and DOUBLE, except NaN and infinities, which are
stringValue(NaN,Infinity,-Infinity). -
#json_value ⇒ String
An ARRAY, STRUCT, or MAP column value, as JSON text: an array, an object, and an array of
{"key": ..., "value": ...}entries. -
#long_value ⇒ Integer
A TINYINT, SMALLINT, INTEGER, or BIGINT column value.
-
#null_value ⇒ Boolean
Specifies whether the value is a SQL NULL.
-
#string_value ⇒ String
VARCHAR, and the types whose exact form is text: DECIMAL and unsigned 64-bit integers in plain notation, DATE (
yyyy-MM-dd), TIME and TIMESTAMP (ISO-8601 at the column's precision;ZwhentimeZoneis set), and INTERVAL (ISO-8601 duration). -
#unknown ⇒ Object
Returns the value of attribute unknown.
Instance Attribute Details
#blob_value ⇒ String
A VARBINARY column value, as binary data.
6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6626 class SqlValue < Struct.new( :null_value, :boolean_value, :long_value, :double_value, :string_value, :blob_value, :json_value, :unknown) SENSITIVE = [:string_value, :json_value] include Aws::Structure include Aws::Structure::Union class NullValue < SqlValue; end class BooleanValue < SqlValue; end class LongValue < SqlValue; end class DoubleValue < SqlValue; end class StringValue < SqlValue; end class BlobValue < SqlValue; end class JsonValue < SqlValue; end class Unknown < SqlValue; end end |
#boolean_value ⇒ Boolean
A BOOLEAN column value.
6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6626 class SqlValue < Struct.new( :null_value, :boolean_value, :long_value, :double_value, :string_value, :blob_value, :json_value, :unknown) SENSITIVE = [:string_value, :json_value] include Aws::Structure include Aws::Structure::Union class NullValue < SqlValue; end class BooleanValue < SqlValue; end class LongValue < SqlValue; end class DoubleValue < SqlValue; end class StringValue < SqlValue; end class BlobValue < SqlValue; end class JsonValue < SqlValue; end class Unknown < SqlValue; end end |
#double_value ⇒ Float
REAL and DOUBLE, except NaN and infinities, which are stringValue
(NaN, Infinity, -Infinity).
6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6626 class SqlValue < Struct.new( :null_value, :boolean_value, :long_value, :double_value, :string_value, :blob_value, :json_value, :unknown) SENSITIVE = [:string_value, :json_value] include Aws::Structure include Aws::Structure::Union class NullValue < SqlValue; end class BooleanValue < SqlValue; end class LongValue < SqlValue; end class DoubleValue < SqlValue; end class StringValue < SqlValue; end class BlobValue < SqlValue; end class JsonValue < SqlValue; end class Unknown < SqlValue; end end |
#json_value ⇒ String
An ARRAY, STRUCT, or MAP column value, as JSON text: an array, an
object, and an array of {"key": ..., "value": ...} entries. Nested
values follow the same rules, with NULL as null.
6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6626 class SqlValue < Struct.new( :null_value, :boolean_value, :long_value, :double_value, :string_value, :blob_value, :json_value, :unknown) SENSITIVE = [:string_value, :json_value] include Aws::Structure include Aws::Structure::Union class NullValue < SqlValue; end class BooleanValue < SqlValue; end class LongValue < SqlValue; end class DoubleValue < SqlValue; end class StringValue < SqlValue; end class BlobValue < SqlValue; end class JsonValue < SqlValue; end class Unknown < SqlValue; end end |
#long_value ⇒ Integer
A TINYINT, SMALLINT, INTEGER, or BIGINT column value.
6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6626 class SqlValue < Struct.new( :null_value, :boolean_value, :long_value, :double_value, :string_value, :blob_value, :json_value, :unknown) SENSITIVE = [:string_value, :json_value] include Aws::Structure include Aws::Structure::Union class NullValue < SqlValue; end class BooleanValue < SqlValue; end class LongValue < SqlValue; end class DoubleValue < SqlValue; end class StringValue < SqlValue; end class BlobValue < SqlValue; end class JsonValue < SqlValue; end class Unknown < SqlValue; end end |
#null_value ⇒ Boolean
Specifies whether the value is a SQL NULL. Always true when
present.
6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6626 class SqlValue < Struct.new( :null_value, :boolean_value, :long_value, :double_value, :string_value, :blob_value, :json_value, :unknown) SENSITIVE = [:string_value, :json_value] include Aws::Structure include Aws::Structure::Union class NullValue < SqlValue; end class BooleanValue < SqlValue; end class LongValue < SqlValue; end class DoubleValue < SqlValue; end class StringValue < SqlValue; end class BlobValue < SqlValue; end class JsonValue < SqlValue; end class Unknown < SqlValue; end end |
#string_value ⇒ String
VARCHAR, and the types whose exact form is text: DECIMAL and
unsigned 64-bit integers in plain notation, DATE (yyyy-MM-dd),
TIME and TIMESTAMP (ISO-8601 at the column's precision; Z when
timeZone is set), and INTERVAL (ISO-8601 duration). An UNKNOWN
column's values are NULL. A non-null value of a type the service
cannot return fails the request with ValidationException (cast the
column to VARCHAR).
6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6626 class SqlValue < Struct.new( :null_value, :boolean_value, :long_value, :double_value, :string_value, :blob_value, :json_value, :unknown) SENSITIVE = [:string_value, :json_value] include Aws::Structure include Aws::Structure::Union class NullValue < SqlValue; end class BooleanValue < SqlValue; end class LongValue < SqlValue; end class DoubleValue < SqlValue; end class StringValue < SqlValue; end class BlobValue < SqlValue; end class JsonValue < SqlValue; end class Unknown < SqlValue; end end |
#unknown ⇒ Object
Returns the value of attribute unknown
6626 6627 6628 |
# File 'gems/aws-sdk-context/lib/aws-sdk-context/types.rb', line 6626 def unknown @unknown end |