Class: Aws::RDSDataService::Types::SqlParameter
- Inherits:
-
Struct
- Object
- Struct
- Aws::RDSDataService::Types::SqlParameter
- Defined in:
- gems/aws-sdk-rdsdataservice/lib/aws-sdk-rdsdataservice/types.rb
Overview
When making an API call, you may pass SqlParameter data as a hash:
{
name: "ParameterName",
type_hint: "JSON", # accepts JSON, UUID, TIMESTAMP, DATE, TIME, DECIMAL
value: {
array_value: {
array_values: [
{
# recursive ArrayValue
},
],
boolean_values: [false],
double_values: [1.0],
long_values: [1],
string_values: ["String"],
},
blob_value: "data",
boolean_value: false,
double_value: 1.0,
is_null: false,
long_value: 1,
string_value: "String",
},
}
A parameter used in a SQL statement.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#name ⇒ String
The name of the parameter.
-
#type_hint ⇒ String
A hint that specifies the correct object type for data type mapping.
-
#value ⇒ Types::Field
The value of the parameter.
Instance Attribute Details
#name ⇒ String
The name of the parameter.
977 978 979 980 981 982 983 |
# File 'gems/aws-sdk-rdsdataservice/lib/aws-sdk-rdsdataservice/types.rb', line 977 class SqlParameter < Struct.new( :name, :type_hint, :value) SENSITIVE = [] include Aws::Structure end |
#type_hint ⇒ String
A hint that specifies the correct object type for data type mapping. Possible values are as follows:
DATE
- The correspondingString
parameter value is sent as an object ofDATE
type to the database. The accepted format isYYYY-MM-DD
.DECIMAL
- The correspondingString
parameter value is sent as an object ofDECIMAL
type to the database.JSON
- The correspondingString
parameter value is sent as an object ofJSON
type to the database.TIME
- The correspondingString
parameter value is sent as an object ofTIME
type to the database. The accepted format isHH:MM:SS[.FFF]
.TIMESTAMP
- The correspondingString
parameter value is sent as an object ofTIMESTAMP
type to the database. The accepted format isYYYY-MM-DD HH:MM:SS[.FFF]
.UUID
- The correspondingString
parameter value is sent as an object ofUUID
type to the database.
977 978 979 980 981 982 983 |
# File 'gems/aws-sdk-rdsdataservice/lib/aws-sdk-rdsdataservice/types.rb', line 977 class SqlParameter < Struct.new( :name, :type_hint, :value) SENSITIVE = [] include Aws::Structure end |
#value ⇒ Types::Field
The value of the parameter.
977 978 979 980 981 982 983 |
# File 'gems/aws-sdk-rdsdataservice/lib/aws-sdk-rdsdataservice/types.rb', line 977 class SqlParameter < Struct.new( :name, :type_hint, :value) SENSITIVE = [] include Aws::Structure end |