Class: Google::Spanner::V1::ResultSetMetadata
- Inherits:
-
Object
- Object
- Google::Spanner::V1::ResultSetMetadata
- Defined in:
- lib/google/cloud/spanner/v1/doc/google/spanner/v1/result_set.rb
Overview
Metadata about a ResultSet or PartialResultSet.
Instance Attribute Summary collapse
-
#row_type ⇒ Google::Spanner::V1::StructType
Indicates the field names and types for the rows in the result set.
-
#transaction ⇒ Google::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.
Instance Attribute Details
#row_type ⇒ Google::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" } },
]
155 |
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/result_set.rb', line 155 class ResultSetMetadata; end |
#transaction ⇒ Google::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.
155 |
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/result_set.rb', line 155 class ResultSetMetadata; end |