Cloud Spanner V1 Client - Class ResultSetMetadata (1.54.2)

Reference documentation and code samples for the Cloud Spanner V1 Client class ResultSetMetadata.

Metadata about a ResultSet or PartialResultSet.

Generated from protobuf message google.spanner.v1.ResultSetMetadata

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ row_type Google\Cloud\Spanner\V1\StructType

Indicates the field names and types for the rows in the result set. For example, a SQL query like "SELECT UserId, UserName FROM Users" could return a row_type value like: "fields": [ { "name": "UserId", "type": { "code": "INT64" } }, { "name": "UserName", "type": { "code": "STRING" } }, ]

↳ transaction Google\Cloud\Spanner\V1\Transaction

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

getRowType

Indicates the field names and types for the rows in the result set. For example, a SQL query like "SELECT UserId, UserName FROM Users" could return a row_type value like: "fields": [ { "name": "UserId", "type": { "code": "INT64" } }, { "name": "UserName", "type": { "code": "STRING" } }, ]

Generated from protobuf field .google.spanner.v1.StructType row_type = 1;

Returns
TypeDescription
Google\Cloud\Spanner\V1\StructType|null

hasRowType

clearRowType

setRowType

Indicates the field names and types for the rows in the result set. For example, a SQL query like "SELECT UserId, UserName FROM Users" could return a row_type value like: "fields": [ { "name": "UserId", "type": { "code": "INT64" } }, { "name": "UserName", "type": { "code": "STRING" } }, ]

Generated from protobuf field .google.spanner.v1.StructType row_type = 1;

Parameter
NameDescription
var Google\Cloud\Spanner\V1\StructType
Returns
TypeDescription
$this

getTransaction

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

Generated from protobuf field .google.spanner.v1.Transaction transaction = 2;

Returns
TypeDescription
Google\Cloud\Spanner\V1\Transaction|null

hasTransaction

clearTransaction

setTransaction

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

Generated from protobuf field .google.spanner.v1.Transaction transaction = 2;

Parameter
NameDescription
var Google\Cloud\Spanner\V1\Transaction
Returns
TypeDescription
$this