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.
#precommit_token
def precommit_token() -> ::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken
Returns
- (::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken) — Optional. A precommit token will be included if the read-write transaction is on a multiplexed session. The precommit token with the highest sequence number from this transaction attempt should be passed to the Commit request for this transaction. This feature is not yet supported and will result in an UNIMPLEMENTED error.
#precommit_token=
def precommit_token=(value) -> ::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken
Parameter
- value (::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken) — Optional. A precommit token will be included if the read-write transaction is on a multiplexed session. The precommit token with the highest sequence number from this transaction attempt should be passed to the Commit request for this transaction. This feature is not yet supported and will result in an UNIMPLEMENTED error.
Returns
- (::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken) — Optional. A precommit token will be included if the read-write transaction is on a multiplexed session. The precommit token with the highest sequence number from this transaction attempt should be passed to the Commit request for this transaction. This feature is not yet supported and will result in an UNIMPLEMENTED error.
#rows
def rows() -> ::Array<::Google::Protobuf::ListValue>
Returns
-
(::Array<::Google::Protobuf::ListValue>) — Each element in
rows
is 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
rows
is 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
rows
is 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.