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

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

#undeclared_parameters

def undeclared_parameters() -> ::Google::Cloud::Spanner::V1::StructType
Returns
  • (::Google::Cloud::Spanner::V1::StructType) —

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

#undeclared_parameters=

def undeclared_parameters=(value) -> ::Google::Cloud::Spanner::V1::StructType
Parameter
  • value (::Google::Cloud::Spanner::V1::StructType) —

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

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