Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::ResultSet.
Results from Read or ExecuteSql.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#metadata
def metadata() -> ::Google::Cloud::Spanner::V1::ResultSetMetadata
    Returns
    
  - (::Google::Cloud::Spanner::V1::ResultSetMetadata) — Metadata about the result set, such as row type information.
#metadata=
def metadata=(value) -> ::Google::Cloud::Spanner::V1::ResultSetMetadata
    Parameter
    
  - value (::Google::Cloud::Spanner::V1::ResultSetMetadata) — Metadata about the result set, such as row type information.
    Returns
    
  - (::Google::Cloud::Spanner::V1::ResultSetMetadata) — Metadata about the result set, such as row type information.
#rows
def rows() -> ::Array<::Google::Protobuf::ListValue>
    Returns
    
  - 
        (::Array<::Google::Protobuf::ListValue>) — Each element in rowsis a row whose format is defined by metadata.row_type. The ith element in each row matches the ith field in metadata.row_type. Elements are encoded based on type as described here.
#rows=
def rows=(value) -> ::Array<::Google::Protobuf::ListValue>
    Parameter
    
  - 
        value (::Array<::Google::Protobuf::ListValue>) — Each element in rowsis a row whose format is defined by metadata.row_type. The ith element in each row matches the ith field in metadata.row_type. Elements are encoded based on type as described here.
    Returns
    
  - 
        (::Array<::Google::Protobuf::ListValue>) — Each element in rowsis a row whose format is defined by metadata.row_type. The ith element in each row matches the ith field in metadata.row_type. Elements are encoded based on type as described here.
#stats
def stats() -> ::Google::Cloud::Spanner::V1::ResultSetStats
    Returns
    
  - (::Google::Cloud::Spanner::V1::ResultSetStats) — Query plan and execution statistics for the SQL statement that produced this result set. These can be requested by setting ExecuteSqlRequest.query_mode. DML statements always produce stats containing the number of rows modified, unless executed using the ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode. Other fields may or may not be populated, based on the ExecuteSqlRequest.query_mode.
#stats=
def stats=(value) -> ::Google::Cloud::Spanner::V1::ResultSetStats
    Parameter
    
  - value (::Google::Cloud::Spanner::V1::ResultSetStats) — Query plan and execution statistics for the SQL statement that produced this result set. These can be requested by setting ExecuteSqlRequest.query_mode. DML statements always produce stats containing the number of rows modified, unless executed using the ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode. Other fields may or may not be populated, based on the ExecuteSqlRequest.query_mode.
    Returns
    
- (::Google::Cloud::Spanner::V1::ResultSetStats) — Query plan and execution statistics for the SQL statement that produced this result set. These can be requested by setting ExecuteSqlRequest.query_mode. DML statements always produce stats containing the number of rows modified, unless executed using the ExecuteSqlRequest.QueryMode.PLAN ExecuteSqlRequest.query_mode. Other fields may or may not be populated, based on the ExecuteSqlRequest.query_mode.