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
#cache_update
def cache_update() -> ::Google::Cloud::Spanner::V1::CacheUpdate
Returns
-
(::Google::Cloud::Spanner::V1::CacheUpdate) — Optional. A cache update expresses a set of changes the client should
incorporate into its location cache. The client should discard the changes
if they are older than the data it already has. This data can be obtained
in response to requests that included a
RoutingHintfield, but may also be obtained by explicit location-fetching RPCs which may be added in the future.
#cache_update=
def cache_update=(value) -> ::Google::Cloud::Spanner::V1::CacheUpdate
Parameter
-
value (::Google::Cloud::Spanner::V1::CacheUpdate) — Optional. A cache update expresses a set of changes the client should
incorporate into its location cache. The client should discard the changes
if they are older than the data it already has. This data can be obtained
in response to requests that included a
RoutingHintfield, but may also be obtained by explicit location-fetching RPCs which may be added in the future.
Returns
-
(::Google::Cloud::Spanner::V1::CacheUpdate) — Optional. A cache update expresses a set of changes the client should
incorporate into its location cache. The client should discard the changes
if they are older than the data it already has. This data can be obtained
in response to requests that included a
RoutingHintfield, but may also be obtained by explicit location-fetching RPCs which may be added in the future.
#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 is included if the read-write transaction is on a multiplexed session. Pass the precommit token with the highest sequence number from this transaction attempt to the Commit request for this transaction.
#precommit_token=
def precommit_token=(value) -> ::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken
Parameter
- value (::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken) — Optional. A precommit token is included if the read-write transaction is on a multiplexed session. Pass the precommit token with the highest sequence number from this transaction attempt to the Commit request for this transaction.
Returns
- (::Google::Cloud::Spanner::V1::MultiplexedSessionPrecommitToken) — Optional. A precommit token is included if the read-write transaction is on a multiplexed session. Pass the precommit token with the highest sequence number from this transaction attempt to the Commit request for this transaction.
#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 might or might 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 might or might 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 might or might not be populated, based on the ExecuteSqlRequest.query_mode.