Class: Google::Spanner::V1::ResultSetMetadata

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#row_typeGoogle::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" } },
]

Returns:

  • (Google::Spanner::V1::StructType)

    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

#transactionGoogle::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.

Returns:

  • (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.



155
# File 'lib/google/cloud/spanner/v1/doc/google/spanner/v1/result_set.rb', line 155

class ResultSetMetadata; end