Cloud Spanner V1 API - Class Google::Cloud::Spanner::V1::ResultSetMetadata (v0.8.1)

Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::ResultSetMetadata.

Metadata about a ResultSet or PartialResultSet.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#row_type

def row_type() -> ::Google::Cloud::Spanner::V1::StructType
Returns
  • (::Google::Cloud::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" } },
    ]
    

#row_type=

def row_type=(value) -> ::Google::Cloud::Spanner::V1::StructType
Parameter
  • value (::Google::Cloud::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" } },
    ]
    
Returns
  • (::Google::Cloud::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" } },
    ]
    

#transaction

def transaction() -> ::Google::Cloud::Spanner::V1::Transaction
Returns

#transaction=

def transaction=(value) -> ::Google::Cloud::Spanner::V1::Transaction
Parameter
Returns