Class: Google::Cloud::Spanner::V1::ResultSetMetadata
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::V1::ResultSetMetadata
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/spanner/v1/result_set.rb
Overview
Metadata about a ResultSet or PartialResultSet.
Instance Attribute Summary collapse
-
#row_type ⇒ ::Google::Cloud::Spanner::V1::StructType
Indicates the field names and types for the rows in the result set.
-
#transaction ⇒ ::Google::Cloud::Spanner::V1::Transaction
If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.
-
#undeclared_parameters ⇒ ::Google::Cloud::Spanner::V1::StructType
A SQL query can be parameterized.
Instance Attribute Details
#row_type ⇒ ::Google::Cloud::Spanner::V1::StructType
Returns Indicates the field names and types for the rows in the result
set. For example, a SQL query like "SELECT UserId, UserName FROM
Users"
could return a row_type
value like:
"fields": [
{ "name": "UserId", "type": { "code": "INT64" } },
{ "name": "UserName", "type": { "code": "STRING" } },
].
204 205 206 207 |
# File 'proto_docs/google/spanner/v1/result_set.rb', line 204 class ResultSetMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#transaction ⇒ ::Google::Cloud::Spanner::V1::Transaction
Returns If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.
204 205 206 207 |
# File 'proto_docs/google/spanner/v1/result_set.rb', line 204 class ResultSetMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#undeclared_parameters ⇒ ::Google::Cloud::Spanner::V1::StructType
Returns A SQL query can be parameterized. In PLAN mode, these parameters can be
undeclared. This indicates the field names and types for those undeclared
parameters in the SQL query. For example, a SQL query like "SELECT * FROM
Users where UserId = @userId and UserName = @userName "
could return a
undeclared_parameters
value like:
"fields": [
{ "name": "UserId", "type": { "code": "INT64" } },
{ "name": "UserName", "type": { "code": "STRING" } },
].
204 205 206 207 |
# File 'proto_docs/google/spanner/v1/result_set.rb', line 204 class ResultSetMetadata include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |