Google Cloud Spanner v1 API - Class ResultSetMetadata (4.4.0)

public sealed class ResultSetMetadata : IMessage<ResultSetMetadata>, IEquatable<ResultSetMetadata>, IDeepCloneable<ResultSetMetadata>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Spanner v1 API class ResultSetMetadata.

Metadata about a [ResultSet][google.spanner.v1.ResultSet] or [PartialResultSet][google.spanner.v1.PartialResultSet].

Inheritance

object > ResultSetMetadata

Namespace

GoogleGoogle.CloudGoogle.Cloud.SpannerV1

Assembly

Google.Cloud.Spanner.V1.dll

Constructors

ResultSetMetadata()

public ResultSetMetadata()

ResultSetMetadata(ResultSetMetadata)

public ResultSetMetadata(ResultSetMetadata other)
Parameter
NameDescription
otherResultSetMetadata

Properties

RowType

public StructType RowType { get; set; }

Indicates the field names and types for the rows in the result set. For example, a SQL query like &quot;SELECT UserId, UserName FROM Users&quot; could return a row_type value like:

"fields": [ { "name": "UserId", "type": { "code": "INT64" } }, { "name": "UserName", "type": { "code": "STRING" } }, ]

Property Value
TypeDescription
StructType

Transaction

public Transaction Transaction { get; set; }

If the read or SQL query began a transaction as a side-effect, the information about the new transaction is yielded here.

Property Value
TypeDescription
Transaction

UndeclaredParameters

public StructType UndeclaredParameters { get; set; }

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 &quot;SELECT * FROM Users where UserId = @userId and UserName = @userName &quot; could return a undeclared_parameters value like:

"fields": [ { "name": "UserId", "type": { "code": "INT64" } }, { "name": "UserName", "type": { "code": "STRING" } }, ]

Property Value
TypeDescription
StructType