You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::RDSDataService::Types::SqlParameter
- Inherits:
-
Struct
- Object
- Struct
- Aws::RDSDataService::Types::SqlParameter
- Defined in:
- (unknown)
Overview
When passing SqlParameter as input to an Aws::Client method, you can use a vanilla Hash:
{
name: "ParameterName",
type_hint: "DATE", # accepts DATE, DECIMAL, TIME, TIMESTAMP
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.
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.
#type_hint ⇒ String
A hint that specifies the correct object type for data type mapping.
Values:
DECIMAL
- The correspondingString
parameter value is sent as an object ofDECIMAL
type to the database.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]
.TIME
- The correspondingString
parameter value is sent as an object ofTIME
type to the database. The accepted format isHH:MM:SS[.FFF]
.DATE
- The correspondingString
parameter value is sent as an object ofDATE
type to the database. The accepted format isYYYY-MM-DD
.Possible values:
- DATE
- DECIMAL
- TIME
- TIMESTAMP
#value ⇒ Types::Field
The value of the parameter.