Class: Aws::RDSDataService::Types::SqlParameter
- Inherits:
-
Struct
- Object
- Struct
- Aws::RDSDataService::Types::SqlParameter
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-rdsdataservice/types.rb
Overview
When making an API call, you may pass SqlParameter data as a 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.
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.
896 897 898 899 900 901 902 |
# File 'lib/aws-sdk-rdsdataservice/types.rb', line 896 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.
Values:
-
‘DECIMAL` - The corresponding `String` parameter value is sent as an object of `DECIMAL` type to the database.
-
‘TIMESTAMP` - The corresponding `String` parameter value is sent as an object of `TIMESTAMP` type to the database. The accepted format is `YYYY-MM-DD HH:MM:SS`.
-
‘TIME` - The corresponding `String` parameter value is sent as an object of `TIME` type to the database. The accepted format is `HH:MM:SS`.
-
‘DATE` - The corresponding `String` parameter value is sent as an object of `DATE` type to the database. The accepted format is `YYYY-MM-DD`.
896 897 898 899 900 901 902 |
# File 'lib/aws-sdk-rdsdataservice/types.rb', line 896 class SqlParameter < Struct.new( :name, :type_hint, :value) SENSITIVE = [] include Aws::Structure end |
#value ⇒ Types::Field
The value of the parameter.
896 897 898 899 900 901 902 |
# File 'lib/aws-sdk-rdsdataservice/types.rb', line 896 class SqlParameter < Struct.new( :name, :type_hint, :value) SENSITIVE = [] include Aws::Structure end |