ResultSet

Results fromsessions.read orExecuteSql.

JSON representation
{"metadata":{object (ResultSetMetadata)},"rows":[array],"stats":{object (ResultSetStats)},"precommitToken":{object (MultiplexedSessionPrecommitToken)}}
Fields
metadata

object (ResultSetMetadata)

Metadata about the result set, such as row type information.

rows[]

array (ListValue format)

Each element inrows is a row whose format is defined bymetadata.row_type. The ith element in each row matches the ith field inmetadata.row_type. Elements are encoded based on type as describedhere.

stats

object (ResultSetStats)

Query plan and execution statistics for the SQL statement that produced this result set. These can be requested by settingExecuteSqlRequest.query_mode. DML statements always produce stats containing the number of rows modified, unless executed using theExecuteSqlRequest.QueryMode.PLANExecuteSqlRequest.query_mode. Other fields might or might not be populated, based on theExecuteSqlRequest.query_mode.

precommitToken

object (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 theCommit request for this transaction.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-12 UTC.